Skip to content

Commit 99e44f4

Browse files
authored
Merge pull request #968 from fdlamotte/uitask_back3_disables_buzzer
uitask: bring back buzzer toggle on tracker l1
2 parents dab44a1 + 7d62a27 commit 99e44f4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,10 @@ void UITask::loop() {
683683
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
684684
c = handleLongPress(KEY_RIGHT);
685685
}
686+
ev = back_btn.check();
687+
if (ev == BUTTON_EVENT_TRIPLE_CLICK) {
688+
c = handleTripleClick(KEY_SELECT);
689+
}
686690
#elif defined(PIN_USER_BTN)
687691
int ev = user_btn.check();
688692
if (ev == BUTTON_EVENT_CLICK) {

variants/wio-tracker-l1/target.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ EnvironmentSensorManager sensors = EnvironmentSensorManager();
2424
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
2525
MomentaryButton joystick_left(JOYSTICK_LEFT, 1000, true, false, false);
2626
MomentaryButton joystick_right(JOYSTICK_RIGHT, 1000, true, false, false);
27-
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, false);
27+
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, true);
2828
#endif
2929

3030
bool radio_init() {

0 commit comments

Comments
 (0)