Merge pull request #968 from fdlamotte/uitask_back3_disables_buzzer
uitask: bring back buzzer toggle on tracker l1
This commit is contained in:
@@ -683,6 +683,10 @@ void UITask::loop() {
|
|||||||
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
|
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
|
||||||
c = handleLongPress(KEY_RIGHT);
|
c = handleLongPress(KEY_RIGHT);
|
||||||
}
|
}
|
||||||
|
ev = back_btn.check();
|
||||||
|
if (ev == BUTTON_EVENT_TRIPLE_CLICK) {
|
||||||
|
c = handleTripleClick(KEY_SELECT);
|
||||||
|
}
|
||||||
#elif defined(PIN_USER_BTN)
|
#elif defined(PIN_USER_BTN)
|
||||||
int ev = user_btn.check();
|
int ev = user_btn.check();
|
||||||
if (ev == BUTTON_EVENT_CLICK) {
|
if (ev == BUTTON_EVENT_CLICK) {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ EnvironmentSensorManager sensors = EnvironmentSensorManager();
|
|||||||
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
|
||||||
MomentaryButton joystick_left(JOYSTICK_LEFT, 1000, true, false, false);
|
MomentaryButton joystick_left(JOYSTICK_LEFT, 1000, true, false, false);
|
||||||
MomentaryButton joystick_right(JOYSTICK_RIGHT, 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
|
#endif
|
||||||
|
|
||||||
bool radio_init() {
|
bool radio_init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user