Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Use syntax for 3.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
eFiniLan committed Nov 22, 2023
1 parent b3873c5 commit bc75d89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions selfdrive/car/car_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ def fingerprint(logcan, sendcan, num_pandas):

cached_params = params.get("CarParamsCache")
if cached_params is not None:
with car.CarParams.from_bytes(cached_params) as cached_params:
if cached_params.carName == "mock":
cached_params = None
# with car.CarParams.from_bytes(cached_params) as cached_params:
cached_params = car.CarParams.from_bytes(cached_params)
if cached_params.carName == "mock":
cached_params = None

if cached_params is not None and len(cached_params.carFw) > 0 and \
cached_params.carVin is not VIN_UNKNOWN and not disable_fw_cache:
Expand Down

0 comments on commit bc75d89

Please sign in to comment.