Added missing GUI box for MSP override.

This commit is contained in:
Michael Keller 2021-01-07 14:31:26 +13:00
parent 3df0053d2e
commit d8d15efb98
2 changed files with 10 additions and 0 deletions

View File

@ -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)))) {

View File

@ -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