mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Reserve MIXER_GIMBAL and MIXER_PPM_TO_SERVO
This commit is contained in:
parent
7a821b7bc4
commit
7403576a15
1 changed files with 2 additions and 1 deletions
|
@ -548,7 +548,8 @@ void validateAndFixConfig(void)
|
||||||
{
|
{
|
||||||
#if !defined(USE_UNCOMMON_MIXERS) && !defined(USE_QUAD_MIXER_ONLY) && !defined(USE_OSD_SLAVE)
|
#if !defined(USE_UNCOMMON_MIXERS) && !defined(USE_QUAD_MIXER_ONLY) && !defined(USE_OSD_SLAVE)
|
||||||
mixerMode_e mixerMode = mixerConfigMutable()->mixerMode;
|
mixerMode_e mixerMode = mixerConfigMutable()->mixerMode;
|
||||||
if (mixerMode != MIXER_CUSTOM && mixerMode != MIXER_CUSTOM_AIRPLANE && mixerMode != MIXER_CUSTOM_TRI && mixers[mixerMode].motor == NULL) {
|
|
||||||
|
if (mixerMode != MIXER_CUSTOM && mixerMode != MIXER_CUSTOM_AIRPLANE && mixerMode != MIXER_CUSTOM_TRI && mixerMode != MIXER_GIMBAL && mixerMode != MIXER_PPM_TO_SERVO && mixers[mixerMode].motor == NULL) {
|
||||||
mixerConfigMutable()->mixerMode = MIXER_CUSTOM;
|
mixerConfigMutable()->mixerMode = MIXER_CUSTOM;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue