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:
Dominic Clifton 2017-06-04 15:12:39 +01:00 committed by mikeller
parent 671d453709
commit a72f98e4f3
1 changed files with 2 additions and 1 deletions

View File

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