diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index df82fcde9c..c021760c35 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -322,7 +322,6 @@ class CarState(CarStateBase): def get_can_parser_canfd(self, CP): messages = [ - (self.gear_msg_canfd, 100), (self.accelerator_msg_canfd, 100), ("WHEEL_SPEEDS", 100), ("STEERING_SENSORS", 100), @@ -333,6 +332,9 @@ class CarState(CarStateBase): ("DOORS_SEATBELTS", 4), ] + if not CP.flags & HyundaiFlags.CANFD_ALT_GEARS_3: + messages.append((self.gear_msg_canfd, 100)) + if CP.flags & HyundaiFlags.EV: messages += [ ("MANUAL_SPEED_LIMIT_ASSIST", 10),