can do this

pull/31821/head
Shane Smiskol 1 year ago
parent 75c01fb4c5
commit c3d311b2ff
  1. 5
      selfdrive/car/ford/interface.py

@ -42,8 +42,9 @@ class CarInterface(CarInterfaceBase):
else:
# Lock out if the car does not have needed lateral and longitudinal control APIs.
# Note that we also check CAN for adaptive cruise, but no known signal for LCA exists
pscm_config = next((fw.response for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None)
if pscm_config is None or len(pscm_config) != 24:
pscm_config = next((fw.response for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), b"")
if not docs:
if len(pscm_config) != 24:
ret.dashcamOnly = True
else:
config_tja = pscm_config[7] # Traffic Jam Assist

Loading…
Cancel
Save