Skip to content

Commit

Permalink
fixed decrement error
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Dec 6, 2024
1 parent c9d2dd3 commit 091b97c
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 091b97c

Please sign in to comment.