mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
Added missing GUI box for MSP override.
This commit is contained in:
parent
3df0053d2e
commit
d8d15efb98
2 changed files with 10 additions and 0 deletions
|
@ -581,6 +581,10 @@ static void validateAndFixConfig(void)
|
||||||
validateAndFixRatesSettings(); // constrain the various rates settings to limits imposed by the rates type
|
validateAndFixRatesSettings(); // constrain the various rates settings to limits imposed by the rates type
|
||||||
|
|
||||||
#if defined(USE_RX_MSP_OVERRIDE)
|
#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++) {
|
for (int i = 0; i < MAX_MODE_ACTIVATION_CONDITION_COUNT; i++) {
|
||||||
const modeActivationCondition_t *mac = modeActivationConditions(i);
|
const modeActivationCondition_t *mac = modeActivationConditions(i);
|
||||||
if (mac->modeId == BOXMSPOVERRIDE && ((1 << (mac->auxChannelIndex) & (rxConfig()->msp_override_channels_mask)))) {
|
if (mac->modeId == BOXMSPOVERRIDE && ((1 << (mac->auxChannelIndex) & (rxConfig()->msp_override_channels_mask)))) {
|
||||||
|
|
|
@ -333,6 +333,12 @@ void initActiveBoxIds(void)
|
||||||
BME(BOXLAUNCHCONTROL);
|
BME(BOXLAUNCHCONTROL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_RX_MSP_OVERRIDE)
|
||||||
|
if (rxConfig()->msp_override_channels_mask) {
|
||||||
|
BME(BOXMSPOVERRIDE);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BME(BOXSTICKCOMMANDDISABLE);
|
BME(BOXSTICKCOMMANDDISABLE);
|
||||||
|
|
||||||
#undef BME
|
#undef BME
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue