Skip to content

Commit

Permalink
Merge pull request vedderb#51 from junwoo091400/fabsf(servo_val)_Miss…
Browse files Browse the repository at this point in the history
…ing_fix

PPM Current_noRev_Brake 'pulses_without_power' increment condition has Typo
  • Loading branch information
vedderb authored Feb 28, 2018
2 parents 309dba6 + 93c9ad0 commit 264946d
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 264946d

Please sign in to comment.