From afb91322e19a2110609393a37bfb86699288fed9 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 17 May 2024 10:09:55 -0400 Subject: [PATCH] use different list --- selfdrive/car/honda/carstate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/honda/carstate.py b/selfdrive/car/honda/carstate.py index 6582ed6aea..d412f81142 100644 --- a/selfdrive/car/honda/carstate.py +++ b/selfdrive/car/honda/carstate.py @@ -28,7 +28,7 @@ def get_can_messages(CP, gearbox_msg): ("STEER_MOTOR_TORQUE", 0), # TODO: not on every car ] - if CP.carFingerprint in (SERIAL_STEERING | (CAR.HONDA_ODYSSEY_CHN, )): + if CP.carFingerprint in (SERIAL_STEERING | {CAR.HONDA_ODYSSEY_CHN, }): messages += [ ("SCM_FEEDBACK", 25), ("SCM_BUTTONS", 50), @@ -58,7 +58,7 @@ def get_can_messages(CP, gearbox_msg): ("ACC_CONTROL", 50), ] else: # Nidec signals - if CP.carFingerprint in (SERIAL_STEERING | (CAR.HONDA_ODYSSEY_CHN, )): + if CP.carFingerprint in (SERIAL_STEERING | {CAR.HONDA_ODYSSEY_CHN, }): messages.append(("CRUISE_PARAMS", 10)) else: messages.append(("CRUISE_PARAMS", 50))