Handbrake timeout fix

This commit is contained in:
2024-04-13 12:28:30 +03:00
parent 8449ca098e
commit a3d4ffd548

View File

@@ -55,7 +55,7 @@ uint8_t logic::DccdForce::update(uint8_t user_force)
// Determine target force source // Determine target force source
uint8_t next_force = user_force; 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; next_force = 0;
} }