From 0c7d7df2ec3f490c1e916b97a062c1de84abcac7 Mon Sep 17 00:00:00 2001 From: nayan Date: Tue, 12 Aug 2025 14:40:11 -0400 Subject: [PATCH] keep both --- selfdrive/ui/feedback/feedbackd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/feedback/feedbackd.py b/selfdrive/ui/feedback/feedbackd.py index 3d36755595..078170ac16 100755 --- a/selfdrive/ui/feedback/feedbackd.py +++ b/selfdrive/ui/feedback/feedbackd.py @@ -83,13 +83,13 @@ def get_button_event(sm, params): # use custom button mapping if available use_custom = custom_mapped and sm.updated['carStateSP'] # only allow the LKAS button to record feedback when MADS is disabled & custom button mapping is not set - use_lkas = sm.updated['carState'] and sm['carState'].canValid and not sm['selfdriveStateSP'].mads.available and not custom_mapped + use_lkas = sm.updated['carState'] and sm['carState'].canValid and not sm['selfdriveStateSP'].mads.available if use_custom: for be in sm['carStateSP'].buttonEvents: if be.type == ButtonTypeSP.customButton: btn_pressed = ButtonPressType.CUSTOM if be.pressed else ButtonPressType.NONE - elif use_lkas: + if use_lkas: for be in sm['carState'].buttonEvents: if be.type == ButtonType.lkas: btn_pressed = ButtonPressType.LKAS if be.pressed else ButtonPressType.NONE