From 3a082908d56075673cdb671a3c947083a5b7070b Mon Sep 17 00:00:00 2001 From: "Mr.one" Date: Mon, 25 May 2026 11:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91interface.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opendbc_repo/opendbc/car/volkswagen/interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opendbc_repo/opendbc/car/volkswagen/interface.py b/opendbc_repo/opendbc/car/volkswagen/interface.py index 57492d57..5fa2ec47 100644 --- a/opendbc_repo/opendbc/car/volkswagen/interface.py +++ b/opendbc_repo/opendbc/car/volkswagen/interface.py @@ -193,7 +193,7 @@ class CarInterface(CarInterfaceBase): # check pre conditions for successful radar disable # put the device into dashcam mode if neccessary: no relay switching, no bus blocking with relay malfunction if CP.openpilotLongitudinalControl and (CP.flags & VolkswagenFlags.DISABLE_RADAR): - if CP.flags & (VolkswagenFlags.MEB | VolkswagenFlags.MQB_EVO): + if CP.flags & (VolkswagenFlags.MEB | VolkswagenFlags.MQB_EVO | VolkswagenFlags.MQB_EVO_GEN2): if not CarInterface._is_engine_state_allowed_meb(can_recv): CP.dashcamOnly = True CP.dashcamOnlyReason = DashcamOnlyReason.radarDisableEngineOn @@ -207,7 +207,7 @@ class CarInterface(CarInterfaceBase): # Programming session is also rejected while engine on but recovers after key off on if CP.openpilotLongitudinalControl and (CP.flags & VolkswagenFlags.DISABLE_RADAR): RADAR_DISABLE_STATE["error"] = False - if CP.flags & (VolkswagenFlags.MEB | VolkswagenFlags.MQB_EVO): + if CP.flags & (VolkswagenFlags.MEB | VolkswagenFlags.MQB_EVO | VolkswagenFlags.MQB_EVO_GEN2): if CarInterface._is_engine_state_allowed_meb(can_recv): # prevent programming session request, it will not work carlog.warning("Trying to disable the radar") if not CarInterface._radar_communication_control(CP, can_recv, can_send): @@ -221,7 +221,7 @@ class CarInterface(CarInterfaceBase): # deinit is currently never executed in current state of Openpilot # CarD is just killed, no reaction handling on SIGINT if CP.openpilotLongitudinalControl and (CP.flags & VolkswagenFlags.DISABLE_RADAR): - if CP.flags & (VolkswagenFlags.MEB | VolkswagenFlags.MQB_EVO): + if CP.flags & (VolkswagenFlags.MEB | VolkswagenFlags.MQB_EVO | VolkswagenFlags.MQB_EVO_GEN2): CarInterface._radar_communication_control(CP, can_recv, can_send, disable=False) @staticmethod