From 3663cb469fd8e97bcefcec375f97cb4672d7128b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Tue, 17 Dec 2024 07:35:35 -0500 Subject: [PATCH] Apply suggestions from code review --- cereal/log.capnp | 2 -- selfdrive/selfdrived/events.py | 7 ------- 2 files changed, 9 deletions(-) diff --git a/cereal/log.capnp b/cereal/log.capnp index 3b08298327..8708ff038b 100644 --- a/cereal/log.capnp +++ b/cereal/log.capnp @@ -199,8 +199,6 @@ struct OnroadEvent @0xc4fa6047f024e718 { silentSeatbeltNotLatched @162; silentParkBrake @163; controlsMismatchLateral @164; - wrongCarModeNoEntry @165; - wrongCruiseModeNoEntry @166; soundsUnavailableDEPRECATED @47; } diff --git a/selfdrive/selfdrived/events.py b/selfdrive/selfdrived/events.py index 367c379461..80984bc5f8 100755 --- a/selfdrive/selfdrived/events.py +++ b/selfdrive/selfdrived/events.py @@ -1068,13 +1068,6 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = { ET.NO_ENTRY: NoEntryAlert("Controls Mismatch: Lateral"), }, - EventName.wrongCarModeNoEntry: { - ET.NO_ENTRY: wrong_car_mode_alert, - }, - - EventName.wrongCruiseModeNoEntry: { - ET.NO_ENTRY: NoEntryAlert("Adaptive Cruise Disabled"), - }, }