1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Avoid MIXER_CUSTOM, MIXER_CUSTOM_AIRPLANE and MIXER_CUSTOM_TRI from resetting into MIXER_CUSTOM

This commit is contained in:
jflyper 2017-05-29 15:38:33 +09:00
parent 4645b8765b
commit 5af12d40b8

View file

@ -547,7 +547,8 @@ void activateConfig(void)
void validateAndFixConfig(void)
{
#if !defined(USE_UNCOMMON_MIXERS) && !defined(USE_QUAD_MIXER_ONLY) && !defined(USE_OSD_SLAVE)
if (mixers[mixerConfigMutable()->mixerMode].motor == NULL) {
mixerMode_e mixerMode = mixerConfigMutable()->mixerMode;
if (mixerMode != MIXER_CUSTOM && mixerMode != MIXER_CUSTOM_AIRPLANE && mixerMode != MIXER_CUSTOM_TRI && mixers[mixerMode].motor == NULL) {
mixerConfigMutable()->mixerMode = MIXER_CUSTOM;
}
#endif