Hyundai CAN: Enable radar tracks for certain Sante Fe platforms at all times

This commit is contained in:
Jason Wen
2023-12-10 12:13:34 -05:00
parent 83a1c8d6a9
commit a19c45d5a2
+1 -1
View File
@@ -379,7 +379,7 @@ class CarInterface(CarInterfaceBase):
# for enabling radar tracks on startup
# some CAN platforms are able to enable radar tracks config at the radar ECU,
# but the config is reset after ignition cycle
if CP.openpilotLongitudinalControl and (CP.spFlags & HyundaiFlagsSP.SP_RADAR_TRACKS):
if CP.spFlags & HyundaiFlagsSP.SP_RADAR_TRACKS:
enable_radar_tracks(logcan, sendcan, bus=0, addr=0x7d0, config_data_id=b'\x01\x42')
def _update(self, c):