Fix G3 USB sleep and two-minute button wake
This commit is contained in:
1 parent
27616e2e5b
commit
fc3298c84d
19 files changed
+527
-21
No files matched your search
@@ -135,6 +135,9 @@ void UITask::loop() {
|
||||
|
||||
_next_refresh = millis() + 1000; // refresh every second
|
||||
}
|
||||
#if MOMENTARY_BUTTON_WAKE_HOLD_MS > 0 && defined(PIN_USER_BTN)
|
||||
if (user_btn.isWakeHoldActive()) _auto_off = millis() + AUTO_OFF_MILLIS;
|
||||
#endif
|
||||
if (millis() > _auto_off) {
|
||||
_display->turnOff();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user