Skip to content

Commit dc08aac

Browse files
committed
forgot
1 parent f99f5ce commit dc08aac

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

opendbc/car/gm/interface.py

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experime
8787

8888
if candidate in EV_CAR:
8989
ret.transmissionType = TransmissionType.direct
90+
ret.safetyConfigs[0].safetyParam |= GMSafetyFlags.EV.value
9091
else:
9192
ret.transmissionType = TransmissionType.automatic
9293

opendbc/car/gm/values.py

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(self, CP):
6363
class GMSafetyFlags(IntFlag):
6464
HW_CAM = 1
6565
HW_CAM_LONG = 2
66+
EV = 4
6667

6768

6869
@dataclass

0 commit comments

Comments
 (0)