128 bytes RAM saved

This commit is contained in:
Bertrand Songis
2019-09-13 08:21:35 +02:00
parent 5dd2330128
commit 2bc42d9ecb
9 changed files with 57 additions and 61 deletions
+12 -12
View File
@@ -441,8 +441,8 @@ TEST_F(MixerTest, SlowOnPhase)
g_model.mixData[0].srcRaw = MIXSRC_MAX;
g_model.mixData[0].weight = 100;
g_model.mixData[0].flightModes = 0x2 + 0x4 + 0x8 + 0x10 /*only enabled in phase 0*/;
g_model.mixData[0].speedUp = SLOW_STEP*5;
g_model.mixData[0].speedDown = SLOW_STEP*5;
g_model.mixData[0].speedUp = 50;
g_model.mixData[0].speedDown = 50;
s_mixer_first_run_done = true;
mixerCurrentFlightMode = 0;
@@ -468,8 +468,8 @@ TEST_F(MixerTest, SlowOnSwitchSource)
int switchIndex = 0;
#endif
g_model.mixData[0].weight = 100;
g_model.mixData[0].speedUp = SLOW_STEP*5;
g_model.mixData[0].speedDown = SLOW_STEP*5;
g_model.mixData[0].speedUp = 50;
g_model.mixData[0].speedDown = 50;
s_mixer_first_run_done = true;
@@ -487,8 +487,8 @@ TEST_F(MixerTest, SlowDisabledOnStartup)
g_model.mixData[0].mltpx = MLTPX_ADD;
g_model.mixData[0].srcRaw = MIXSRC_MAX;
g_model.mixData[0].weight = 100;
g_model.mixData[0].speedUp = SLOW_STEP*5;
g_model.mixData[0].speedDown = SLOW_STEP*5;
g_model.mixData[0].speedUp = 50;
g_model.mixData[0].speedDown = 50;
evalFlightModeMixes(e_perout_mode_normal, 0);
EXPECT_EQ(chans[0], CHANNEL_MAX);
@@ -507,8 +507,8 @@ TEST_F(MixerTest, DelayOnSwitch)
g_model.mixData[0].swtch = SWSRC_THR;
int switch_index = 1;
#endif
g_model.mixData[0].delayUp = DELAY_STEP*5;
g_model.mixData[0].delayDown = DELAY_STEP*5;
g_model.mixData[0].delayUp = 50;
g_model.mixData[0].delayDown = 50;
evalFlightModeMixes(e_perout_mode_normal, 0);
EXPECT_EQ(chans[0], 0);
@@ -537,8 +537,8 @@ TEST_F(MixerTest, SlowOnMultiply)
g_model.mixData[1].srcRaw = MIXSRC_MAX;
g_model.mixData[1].weight = 100;
g_model.mixData[1].swtch = TR(SWSRC_THR, SWSRC_SA0);
g_model.mixData[1].speedUp = SLOW_STEP*5;
g_model.mixData[1].speedDown = SLOW_STEP*5;
g_model.mixData[1].speedUp = 50;
g_model.mixData[1].speedDown = 50;
s_mixer_first_run_done = true;
@@ -653,8 +653,8 @@ TEST(Trainer, UnpluggedTest)
g_model.mixData[0].mltpx = MLTPX_ADD;
g_model.mixData[0].srcRaw = MIXSRC_FIRST_TRAINER;
g_model.mixData[0].weight = 100;
g_model.mixData[0].delayUp = DELAY_STEP*5;
g_model.mixData[0].delayDown = DELAY_STEP*5;
g_model.mixData[0].delayUp = 50;
g_model.mixData[0].delayDown = 50;
ppmInputValidityTimer = 0;
ppmInput[0] = 1024;
CHECK_DELAY(0, 5000);