From 3d82514e7d977d25c21fb381ce4074785ad02e9c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 5 Jun 2023 21:33:28 -0700 Subject: [PATCH] cmt --- selfdrive/car/fw_versions.py | 3 +++ 1 file changed, 3 insertions(+) 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():