Merge pull request #2841 from McGiverGim/fix-compile-issues-ifndef-USE_SERVOS
Fix compiles issues when not defined USE_SERVOS
This commit is contained in:
parent
671d453709
commit
a72f98e4f3
|
@ -364,9 +364,10 @@ void validateAndFixConfig(void)
|
|||
if (!(mixerMode == MIXER_CUSTOM || mixerMode == MIXER_CUSTOM_AIRPLANE || mixerMode == MIXER_CUSTOM_TRI)) {
|
||||
if (mixers[mixerMode].motorCount && mixers[mixerMode].motor == NULL)
|
||||
mixerConfigMutable()->mixerMode = MIXER_CUSTOM;
|
||||
|
||||
#ifdef USE_SERVOS
|
||||
if (mixers[mixerMode].useServo && servoMixers[mixerMode].servoRuleCount == 0)
|
||||
mixerConfigMutable()->mixerMode = MIXER_CUSTOM_AIRPLANE;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue