Skip to content

Commit

Permalink
Nunchuk ramping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Feb 21, 2015
1 parent 828cdd9 commit b3f8e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/app_nunchuk.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static msg_t output_thread(void *arg) {

// Always allow negative ramping
bool is_decreasing2 = goal_tmp2 < current_goal;
if (!is_decreasing || is_decreasing2) {
if ((!is_decreasing || is_decreasing2) && fabsf(out_val) > 0.001) {
current_goal = goal_tmp2;
}

Expand Down

0 comments on commit b3f8e3a

Please sign in to comment.