mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-29 06:06:38 +00:00
Avoid waking display from rotary input
This commit is contained in:
@@ -751,12 +751,12 @@ void UITask::loop() {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(UI_HAS_ROTARY_INPUT)
|
#if defined(UI_HAS_ROTARY_INPUT)
|
||||||
if (c == 0) {
|
RotaryInputEvent rotaryEv = rotary_input.poll();
|
||||||
RotaryInputEvent ev = rotary_input.poll();
|
if (c == 0 && _display != NULL && _display->isOn()) {
|
||||||
if (ev == RotaryInputEvent::Next) {
|
if (rotaryEv == RotaryInputEvent::Next) {
|
||||||
c = checkDisplayOn(KEY_NEXT);
|
c = KEY_NEXT;
|
||||||
} else if (ev == RotaryInputEvent::Prev) {
|
} else if (rotaryEv == RotaryInputEvent::Prev) {
|
||||||
c = checkDisplayOn(KEY_PREV);
|
c = KEY_PREV;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user