mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Fix pwm value overflow for Brushed when mincommand is set below 1000
This commit is contained in:
parent
30f4a1aa13
commit
68607253ea
1 changed files with 4 additions and 0 deletions
|
@ -738,6 +738,10 @@ void activateConfig(void)
|
|||
|
||||
void validateAndFixConfig(void)
|
||||
{
|
||||
if((masterConfig.motorConfig.motorPwmProtocol == PWM_TYPE_BRUSHED) && (masterConfig.motorConfig.mincommand < 1000)){
|
||||
masterConfig.motorConfig.mincommand = 1000;
|
||||
}
|
||||
|
||||
if (!(featureConfigured(FEATURE_RX_PARALLEL_PWM) || featureConfigured(FEATURE_RX_PPM) || featureConfigured(FEATURE_RX_SERIAL) || featureConfigured(FEATURE_RX_MSP) || featureConfigured(FEATURE_RX_SPI))) {
|
||||
featureSet(DEFAULT_RX_FEATURE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue