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
+6
View File
@@ -414,6 +414,12 @@ public:
}
void savePrefs() { _store->savePrefs(_prefs, sensors.node_lat, sensors.node_lon); }
// Bluetooth on/off as the user left it (NodePrefs::ble_off), kept over reboots.
void rememberBle(bool on) {
if (_prefs.ble_off == (on ? 0 : 1)) return;
_prefs.ble_off = on ? 0 : 1;
savePrefs();
}
void saveRTCTime() { _store->saveRTCTime(); }
// Contact updates (new adverts, path/lastmod changes) are lazily debounced
// (see dirty_contacts_expiry) to avoid wearing flash on every packet --