Skip to content

Commit

Permalink
fixed decrement error (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 authored Dec 7, 2024
1 parent f981a34 commit c9fdf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Src/pedals.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void increase_torque_limit()

void decrease_torque_limit()
{
if (torque_limit_percentage - 1 < 0) {
if (torque_limit_percentage - 0.1 < 0) {
torque_limit_percentage = 0;
} else {
torque_limit_percentage -= 0.1;
Expand Down

0 comments on commit c9fdf25

Please sign in to comment.