Skip to content

Commit 34a109c

Browse files
committed
Ford CAN FD: fix docs
1 parent 4b72aae commit 34a109c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

opendbc/car/ford/interface.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experime
5151

5252
# TRON (SecOC) platforms are not supported
5353
# LateralMotionControl2, ACCDATA are 16 bytes on these platforms
54-
if fingerprint[CAN.camera].get(0x3d6) != 8 or fingerprint[CAN.camera].get(0x186) != 8:
55-
carlog.error('dashcamOnly: SecOC is unsupported')
56-
ret.dashcamOnly = True
54+
if len(fingerprint[CAN.camera]):
55+
if fingerprint[CAN.camera].get(0x3d6) != 8 or fingerprint[CAN.camera].get(0x186) != 8:
56+
carlog.error('dashcamOnly: SecOC is unsupported')
57+
ret.dashcamOnly = True
5758
else:
5859
# Lock out if the car does not have needed lateral and longitudinal control APIs.
5960
# Note that we also check CAN for adaptive cruise, but no known signal for LCA exists

0 commit comments

Comments
 (0)