mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-03 03:11:57 +00:00
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:
@@ -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 --
|
||||
|
||||
Reference in New Issue
Block a user