mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Reset mixer to MIXER_CUSTOM if configured mixer is not supported
This commit is contained in:
parent
bc736c7754
commit
ba99a372a1
1 changed files with 6 additions and 0 deletions
|
@ -546,6 +546,12 @@ void activateConfig(void)
|
|||
|
||||
void validateAndFixConfig(void)
|
||||
{
|
||||
#if !defined(USE_UNCOMMON_MIXERS) || defined(USE_QUADX_MIXER_ONLY)
|
||||
if (mixers[mixerConfigMutable()->mixerMode].motor == NULL) {
|
||||
mixerConfigMutable()->mixerMode = MIXER_CUSTOM;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_OSD_SLAVE
|
||||
if((motorConfig()->dev.motorPwmProtocol == PWM_TYPE_BRUSHED) && (motorConfig()->mincommand < 1000)){
|
||||
motorConfigMutable()->mincommand = 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue