Skip to content

Commit

Permalink
slightly cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jul 6, 2022
1 parent cb3bb10 commit 90350bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/fw_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ def match_fw_to_car(fw_versions, allow_fuzzy=True):
for brand in set(r.brand for r in REQUESTS):
fw_versions_dict = build_fw_dict(fw_versions, filter_brand=brand)
matches = match_fw_to_car_exact(fw_versions_dict)

if len(matches):
break

if allow_fuzzy:
elif allow_fuzzy:
matches = match_fw_to_car_fuzzy(fw_versions_dict)

# Fuzzy match found
Expand Down

0 comments on commit 90350bf

Please sign in to comment.