mirror of https://github.com/rusefi/bldc.git
pulses_without_power should be incremented if Absolute value of 'servo_val' is smaller than 0.001
This commit is contained in:
parent
5a189290bc
commit
93c9ad0205
|
@ -220,7 +220,7 @@ static THD_FUNCTION(ppm_thread, arg) {
|
|||
current_mode_brake = true;
|
||||
}
|
||||
|
||||
if (servo_val < 0.001) {
|
||||
if (fabsf(servo_val) < 0.001) {
|
||||
pulses_without_power++;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue