Issue with function "Trainer Chans" (#7104)

TRAINER(Channels) had a 50% weight
This commit is contained in:
Bertrand Songis
2019-11-20 21:10:30 +01:00
committed by GitHub
parent 4ffd859b05
commit c0a94505b6
18 changed files with 52 additions and 33 deletions
+3 -3
View File
@@ -169,14 +169,14 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
if (param == 0)
newActiveFunctions |= 0x0F;
else if (param <= NUM_STICKS)
newActiveFunctions |= (1 << (param-1));
newActiveFunctions |= (1 << (param - 1));
else if (param == NUM_STICKS + 1)
newActiveFunctions |= (1 << FUNCTION_TRAINER_CHANNELS);
newActiveFunctions |= (1u << FUNCTION_TRAINER_CHANNELS);
break;
}
case FUNC_INSTANT_TRIM:
newActiveFunctions |= (1 << FUNCTION_INSTANT_TRIM);
newActiveFunctions |= (1u << FUNCTION_INSTANT_TRIM);
if (!isFunctionActive(FUNCTION_INSTANT_TRIM)) {
if (IS_INSTANT_TRIM_ALLOWED()) {
instantTrim();