Merge pull request #968 from fdlamotte/uitask_back3_disables_buzzer

uitask: bring back buzzer toggle on tracker l1
This commit is contained in:
ripplebiz
2025-10-19 14:34:42 +11:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -683,6 +683,10 @@ void UITask::loop() {
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
c = handleLongPress(KEY_RIGHT);
}
ev = back_btn.check();
if (ev == BUTTON_EVENT_TRIPLE_CLICK) {
c = handleTripleClick(KEY_SELECT);
}
#elif defined(PIN_USER_BTN)
int ev = user_btn.check();
if (ev == BUTTON_EVENT_CLICK) {

View File

@@ -24,7 +24,7 @@ EnvironmentSensorManager sensors = EnvironmentSensorManager();
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
MomentaryButton joystick_left(JOYSTICK_LEFT, 1000, true, false, false);
MomentaryButton joystick_right(JOYSTICK_RIGHT, 1000, true, false, false);
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, false);
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, true);
#endif
bool radio_init() {