diff --git a/selfdrive/car/fw_versions.py b/selfdrive/car/fw_versions.py index a0ca05d624..17095beaa7 100755 --- a/selfdrive/car/fw_versions.py +++ b/selfdrive/car/fw_versions.py @@ -106,6 +106,9 @@ def match_fw_to_car_fuzzy(fw_versions_dict, config, log=True, exclude=None): exclude_types = [Ecu.fwdCamera, Ecu.fwdRadar, Ecu.eps, Ecu.debug] # Build lookup table from (addr, sub_addr, fw) to list of candidate cars + # TODO: actually fine to be a set. we never assumed that there would be duplicate fw versions, + # but now there can be duplicate platform codes for a platform. well we now get the set of platform codes for a + # platform so it's actually fine as a list now, but it might make it easier to understand if it's a set all_fw_versions = defaultdict(list) all_platform_codes = defaultdict(list) for candidate, fw_by_addr in FW_VERSIONS.items():