From 34d1f1bc56a2cf410fa2abbe0d923e884d890a61 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 29 Jan 2024 22:04:38 -0800 Subject: [PATCH] oof --- 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 73ae72ae20..9193dab410 100755 --- a/selfdrive/car/fw_versions.py +++ b/selfdrive/car/fw_versions.py @@ -119,6 +119,9 @@ def match_fw_to_car_exact(live_fw_versions, match_brand=None, log=True, extra_fw for candidate, fws in candidates.items(): config = FW_QUERY_CONFIGS[MODEL_TO_BRAND[candidate]] + if not len(fws): + invalid.add(candidate) + for ecu, expected_versions in fws.items(): expected_versions = expected_versions + extra_fw_versions.get(candidate, {}).get(ecu, []) ecu_type = ecu[0]