Skip to content

Commit bdfbd44

Browse files
committed
Fix Linux build.
1 parent 385b3e1 commit bdfbd44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramSwitch.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ void TestProgram::program(MultiSwitchProgramEnvironment& env, CancellableScope&
333333
#if 1
334334
auto duration = 15ms;
335335
for (size_t c = 0; c < 65536; c += 1){
336-
context->issue_gyro_accel_x(&scope, 0s, duration, 0s, 688 + 0*c % 2);
337-
context->issue_gyro_accel_y(&scope, 0s, duration, 0s, 1*c % 2);
338-
context->issue_gyro_accel_z(&scope, 0s, duration, 0s, -4038 + 0*c % 2);
336+
context->issue_gyro_accel_x(&scope, 0s, duration, 0s, (uint16_t)(688 + 0*c % 2));
337+
context->issue_gyro_accel_y(&scope, 0s, duration, 0s, (uint16_t)(1*c % 2));
338+
context->issue_gyro_accel_z(&scope, 0s, duration, 0s, (uint16_t)(-4038 + 0*c % 2));
339339
context->issue_gyro_rotate_x(&scope, 0s, duration, 0s, (uint16_t)(0x0000 + 1*c));
340340
context->issue_gyro_rotate_y(&scope, 0s, duration, 0s, (uint16_t)(0x0000 + 1*c));
341341
context->issue_gyro_rotate_z(&scope, 0s, duration, 0s, (uint16_t)(0x0000 + 0*c));

0 commit comments

Comments
 (0)