Skip to content

Commit

Permalink
Fix auto downshifts not working
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed Apr 22, 2023
1 parent c6c5cb8 commit 3a1fb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gearbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ void Gearbox::controller_loop()
{
this->ask_upshift = true;
}
if (this->restrict_target < this->actual_gear && p->should_downshift(this->actual_gear, &this->sensor_data))
if (this->restrict_target < this->actual_gear || p->should_downshift(this->actual_gear, &this->sensor_data))
{
this->ask_downshift = true;
}
Expand Down

0 comments on commit 3a1fb37

Please sign in to comment.