From c39aec3bcf488d88821b17012c06af413c4b0a4f Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Tue, 10 Feb 2026 22:58:20 -0600 Subject: [PATCH] Malibu --- selfdrive/car/gm/gmcan.py | 2 +- selfdrive/car/gm/interface.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/gm/gmcan.py b/selfdrive/car/gm/gmcan.py index 238a04d5c..33e7628af 100644 --- a/selfdrive/car/gm/gmcan.py +++ b/selfdrive/car/gm/gmcan.py @@ -79,7 +79,7 @@ def create_buttons_malibu_cancel(bus, phase, prefix=0x41): data[3] = prefix & 0xFF data[4] = 0x00 cancel_bytes = (0x60, 0xAF, 0x65, 0x9E, 0x6A, 0x8D, 0x6F, 0x7C) - idx = ((phase + 2) % 4) * 2 + idx = (phase % 4) * 2 data[5] = cancel_bytes[idx] data[6] = cancel_bytes[idx + 1] return make_can_msg(0x1e1, bytes(data), bus) diff --git a/selfdrive/car/gm/interface.py b/selfdrive/car/gm/interface.py index f75062061..2b09b3fd9 100644 --- a/selfdrive/car/gm/interface.py +++ b/selfdrive/car/gm/interface.py @@ -179,7 +179,8 @@ class CarInterface(CarInterfaceBase): is_bolt_2022_2023_pedal = candidate == CAR.CHEVROLET_BOLT_CC_2022_2023 and ret.enableGasInterceptor - is_camera_acc = candidate in CAMERA_ACC_CAR and candidate not in CC_ONLY_CAR and candidate not in kaofui_cars + is_camera_acc = (candidate in CAMERA_ACC_CAR and candidate not in CC_ONLY_CAR and candidate not in kaofui_cars) or \ + (candidate == CAR.CHEVROLET_MALIBU_HYBRID_CC) if is_camera_acc: # TorqueTune camera-ACC behavior ret.experimentalLongitudinalAvailable = (candidate not in CC_ONLY_CAR) and not ret.enableGasInterceptor