* Companion: long-press in first 8 seconds now enters CLI Rescue mode

This commit is contained in:
Scott Powell
2025-06-04 21:33:48 +10:00
parent 5d15a68d0d
commit 647d712ae8
5 changed files with 99 additions and 5 deletions

View File

@@ -36,6 +36,7 @@ class UITask {
int _msgcount;
bool _need_refresh = true;
bool _displayWasOn = false; // Track display state before button press
unsigned long ui_started_at;
// Button handlers
#if defined(PIN_USER_BTN) || defined(PIN_USER_BTN_ANA)
@@ -57,7 +58,8 @@ class UITask {
public:
UITask(mesh::MainBoard* board) : _board(board), _display(NULL) {
_next_refresh = 0;
_next_refresh = 0;
ui_started_at = 0;
_connected = false;
}
void begin(DisplayDriver* display, NodePrefs* node_prefs);