From a8a57289523527eb20ea0117b66395e6be6ffe34 Mon Sep 17 00:00:00 2001 From: VanillaGorillaa Date: Sun, 26 Dec 2021 19:41:30 -0800 Subject: [PATCH] syntax --- selfdrive/car/honda/hondacan.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/honda/hondacan.py b/selfdrive/car/honda/hondacan.py index bb9f00e7f5..19fe60f3c6 100644 --- a/selfdrive/car/honda/hondacan.py +++ b/selfdrive/car/honda/hondacan.py @@ -8,7 +8,12 @@ from selfdrive.config import Conversions as CV # 3 = F-CAN A - OBDII port def get_pt_bus(car_fingerprint): - return 1 if car_fingerprint in HONDA_BOSCH elif car_fingerprint in HONDA_RADARLESS 2 else 0 + if car_fingerprint in HONDA_BOSCH: + return 1 + elif car_fingerprint in HONDA_RADARLESS: + return 2 + else: + return 0 def get_lkas_cmd_bus(car_fingerprint, radar_disabled=False):