mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-29 17:13:43 +08:00
Braking status UI: reuse compound operator
This commit is contained in:
@@ -399,8 +399,7 @@ class CarInterfaceBase(ABC):
|
||||
cs_out.madsEnabled = CS.madsEnabled
|
||||
cs_out.accEnabled = CS.accEnabled
|
||||
cs_out.disengageByBrake = CS.disengageByBrake
|
||||
cs_out.brakeLights = cs_out.brakeLights or cs_out.brakePressed or cs_out.brakeHoldActive or \
|
||||
cs_out.parkingBrake or cs_out.regenBraking or cs_out.brake
|
||||
cs_out.brakeLights |= cs_out.brakePressed or cs_out.brakeHoldActive or cs_out.parkingBrake or cs_out.regenBraking
|
||||
|
||||
return cs_out, CS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user