Skip to content

Commit

Permalink
pulses_without_power should be incremented if Absolute value of 'serv…
Browse files Browse the repository at this point in the history
…o_val' is smaller than 0.001
  • Loading branch information
junwoo091400 committed Feb 28, 2018
1 parent 5a18929 commit 93c9ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/app_ppm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93c9ad0

Please sign in to comment.