Restore this to what it's in SP.

This commit is contained in:
blue-genie 2024-09-16 09:31:26 -05:00
parent d6cd4c2806
commit a6bca424be
1 changed files with 2 additions and 2 deletions

View File

@ -64,12 +64,12 @@ class CarInterface(CarInterfaceBase):
pscm_config = next((fw for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None) pscm_config = next((fw for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None)
if pscm_config: if pscm_config:
if len(pscm_config.fwVersion) != 24: if len(pscm_config.fwVersion) != 24:
ret.dashcamOnly = False ret.dashcamOnly = True
else: else:
config_tja = pscm_config.fwVersion[7] # Traffic Jam Assist config_tja = pscm_config.fwVersion[7] # Traffic Jam Assist
config_lca = pscm_config.fwVersion[8] # Lane Centering Assist config_lca = pscm_config.fwVersion[8] # Lane Centering Assist
if config_tja != 0xFF or config_lca != 0xFF: if config_tja != 0xFF or config_lca != 0xFF:
ret.dashcamOnly = False ret.dashcamOnly = True
if ret.spFlags & FordFlagsSP.SP_ENHANCED_LAT_CONTROL: if ret.spFlags & FordFlagsSP.SP_ENHANCED_LAT_CONTROL:
ret.safetyConfigs[-1].safetyParam |= Panda.FLAG_FORD_ENHANCED_LAT_CONTROL ret.safetyConfigs[-1].safetyParam |= Panda.FLAG_FORD_ENHANCED_LAT_CONTROL