fix(bw): cannot select channel for override Special Function (#7052)
This commit is contained in:
@@ -257,7 +257,6 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF
|
|||||||
lcdDrawText(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, STR_CHANS, attr);
|
lcdDrawText(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, STR_CHANS, attr);
|
||||||
else
|
else
|
||||||
drawSource(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, MIXSRC_FIRST_STICK + param - 1, attr);
|
drawSource(MODEL_SPECIAL_FUNC_3RD_COLUMN, y, MIXSRC_FIRST_STICK + param - 1, attr);
|
||||||
if (active) CHECK_INCDEC_MODELVAR_ZERO(event, CFN_CH_INDEX(cfn), maxParam);
|
|
||||||
}
|
}
|
||||||
#if defined(GVARS)
|
#if defined(GVARS)
|
||||||
else if (func == FUNC_ADJUST_GVAR) {
|
else if (func == FUNC_ADJUST_GVAR) {
|
||||||
@@ -265,6 +264,7 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF
|
|||||||
maxParam = MAX_GVARS - 1;
|
maxParam = MAX_GVARS - 1;
|
||||||
drawStringWithIndex(lcdNextPos + 2, y, STR_GV, CFN_GVAR_INDEX(cfn)+1, attr);
|
drawStringWithIndex(lcdNextPos + 2, y, STR_GV, CFN_GVAR_INDEX(cfn)+1, attr);
|
||||||
if (active) CFN_GVAR_INDEX(cfn) = checkIncDec(event, CFN_GVAR_INDEX(cfn), 0, maxParam, eeFlags);
|
if (active) CFN_GVAR_INDEX(cfn) = checkIncDec(event, CFN_GVAR_INDEX(cfn), 0, maxParam, eeFlags);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#endif // GVARS
|
#endif // GVARS
|
||||||
else if (func == FUNC_SET_TIMER) {
|
else if (func == FUNC_SET_TIMER) {
|
||||||
@@ -277,17 +277,20 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF
|
|||||||
if (attr)
|
if (attr)
|
||||||
repeatLastCursorHorMove(event);
|
repeatLastCursorHorMove(event);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#if defined(FUNCTION_SWITCHES)
|
#if defined(FUNCTION_SWITCHES)
|
||||||
else if (func == FUNC_PUSH_CUST_SWITCH) {
|
else if (func == FUNC_PUSH_CUST_SWITCH) {
|
||||||
uint8_t sw = switchGetSwitchFromCustomIdx(CFN_CS_INDEX(cfn));
|
uint8_t sw = switchGetSwitchFromCustomIdx(CFN_CS_INDEX(cfn));
|
||||||
lcdDrawText(lcdNextPos + 5, y, switchGetDefaultName(sw), attr);
|
lcdDrawText(lcdNextPos + 5, y, switchGetDefaultName(sw), attr);
|
||||||
if (active) CFN_CS_INDEX(cfn) = switchGetCustomSwitchIdx(checkIncDec(event, sw, 0, switchGetMaxSwitches() - 1, eeFlags, switchIsCustomSwitch));
|
if (active) CFN_CS_INDEX(cfn) = switchGetCustomSwitchIdx(checkIncDec(event, sw, 0, switchGetMaxSwitches() - 1, eeFlags, switchIsCustomSwitch));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (attr) {
|
else if (attr) {
|
||||||
repeatLastCursorHorMove(event);
|
repeatLastCursorHorMove(event);
|
||||||
}
|
}
|
||||||
|
if (active) CHECK_INCDEC_MODELVAR_ZERO(event, CFN_CH_INDEX(cfn), maxParam);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user