fix: Bluetooth switched off stays off over a reboot or hibernate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-10-06 14:09:22 +02:00
co-authored by Claude Opus 5.5
parent 50d0d5577b
commit 5a92d36509
5 changed files with 15 additions and 3 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ public:
bool isClientConnected() const { return _serial->isClientConnected(); }
uint16_t getBattMilliVolts() const { return _board->getBattMilliVolts(); }
bool isSerialEnabled() const { return _serial->isEnabled(); }
void enableSerial() { _serial->enable(); }
void disableSerial() { _serial->disable(); }
void enableSerial() { _serial->enable(); the_mesh.rememberBle(true); }
void disableSerial() { _serial->disable(); the_mesh.rememberBle(false); }
virtual void notify(UIEventType t = UIEventType::none) = 0;
// Single choke point for every controlled power-down (low-battery auto-off,
// long-press power-off, and every board.reboot() caller too): flush