Handbrake timeout fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user