feat-hal-2 #4

Merged
andis merged 35 commits from feat-hal-2 into develop 2024-07-31 16:15:36 +00:00
Showing only changes of commit a3d4ffd548 - Show all commits

View File

@@ -55,7 +55,7 @@ uint8_t logic::DccdForce::update(uint8_t user_force)
// Determine target force source
uint8_t next_force = user_force;
if((this->handbrake->state == hw::BUTTON_ON)&&(this->handbrake->time < this->max_hbrake_time))
if((this->handbrake->state == hw::BUTTON_ON)&&((this->handbrake->time < this->max_hbrake_time)||(this->max_hbrake_time == 0)))
{
next_force = 0;
}