Skip to content

Commit

Permalink
chore: Minor fix for resetting remainders.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Sep 3, 2024
1 parent 58985e8 commit d5aca5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/behaviors/behavior_input_two_axis.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ static void update_work_scheduling(const struct device *dev) {
k_work_schedule(&data->tick_work, K_MSEC(cfg->trigger_period_ms));
} else {
k_work_cancel_delayable(&data->tick_work);
data->state.y.remainder = 0;
data->state.x.remainder = 0;
}
}

Expand Down

0 comments on commit d5aca5f

Please sign in to comment.