Added missing GUI box for MSP override.
This commit is contained in:
parent
3df0053d2e
commit
d8d15efb98
|
@ -581,6 +581,10 @@ static void validateAndFixConfig(void)
|
|||
validateAndFixRatesSettings(); // constrain the various rates settings to limits imposed by the rates type
|
||||
|
||||
#if defined(USE_RX_MSP_OVERRIDE)
|
||||
if (!rxConfig()->msp_override_channels_mask) {
|
||||
removeModeActivationCondition(BOXMSPOVERRIDE);
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_MODE_ACTIVATION_CONDITION_COUNT; i++) {
|
||||
const modeActivationCondition_t *mac = modeActivationConditions(i);
|
||||
if (mac->modeId == BOXMSPOVERRIDE && ((1 << (mac->auxChannelIndex) & (rxConfig()->msp_override_channels_mask)))) {
|
||||
|
|
|
@ -333,6 +333,12 @@ void initActiveBoxIds(void)
|
|||
BME(BOXLAUNCHCONTROL);
|
||||
#endif
|
||||
|
||||
#if defined(USE_RX_MSP_OVERRIDE)
|
||||
if (rxConfig()->msp_override_channels_mask) {
|
||||
BME(BOXMSPOVERRIDE);
|
||||
}
|
||||
#endif
|
||||
|
||||
BME(BOXSTICKCOMMANDDISABLE);
|
||||
|
||||
#undef BME
|
||||
|
|
Loading…
Reference in New Issue