mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
Add gas interceptor condition for CC_ONLY_CAR
This commit is contained in:
@@ -414,7 +414,7 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.pcmCruise = False
|
||||
ret.openpilotLongitudinalControl = not frogpilot_toggles.disable_openpilot_long
|
||||
|
||||
elif candidate in CC_ONLY_CAR:
|
||||
elif candidate in CC_ONLY_CAR and not ret.enableGasInterceptor:
|
||||
ret.flags |= GMFlags.CC_LONG.value
|
||||
gm_safety_cfg.safetyParam |= Panda.FLAG_GM_CC_LONG
|
||||
ret.radarUnavailable = True
|
||||
|
||||
Reference in New Issue
Block a user