Toyota: allow sport gear (#35696)

* Toyota: allow sport gear

* revvy

* add todo
This commit is contained in:
Shane Smiskol
2025-07-11 16:17:07 -07:00
committed by GitHub
parent 5751c61de0
commit d1922efa4c

View File

@@ -78,7 +78,8 @@ class CarSpecificEvents:
events.add(EventName.manualRestart)
elif self.CP.brand == 'toyota':
events = self.create_common_events(CS, CS_prev)
# TODO: when we check for unexpected disengagement, check gear not S1, S2, S3
events = self.create_common_events(CS, CS_prev, extra_gears=[GearShifter.sport])
if self.CP.openpilotLongitudinalControl:
if CS.cruiseState.standstill and not CS.brakePressed: