Braking status UI: reuse compound operator

This commit is contained in:
Jason Wen
2023-02-06 00:22:17 -05:00
parent c0e0dbb642
commit 048fd58243
+1 -2
View File
@@ -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