Remove the deep-sleep feature entirely (user decision): power manager, Settings switch, NVS key, sleep bit in the shared header, wiki page and cheat-sheet entries
Firmware / build (push) Successful in 6m59s

This commit is contained in:
2026-09-28 17:20:54 +02:00
parent 59fae2c219
commit f07590bbc5
12 changed files with 5 additions and 268 deletions
-15
View File
@@ -18,7 +18,6 @@ static const char* NVS_NAMESPACE = "settings";
static const char* NVS_KEY_WIFI_ENABLED = "wifi_en";
static const char* NVS_KEY_UART_ENABLED = "uart_en";
static const char* NVS_KEY_DEBUG_ENABLED = "debug_en";
static const char* NVS_KEY_SLEEP_ENABLED = "sleep_en";
static const char* NVS_KEY_CAN_ENABLED = "can_en";
// ============================================================================
@@ -67,20 +66,6 @@ void saveDebugState(bool enabled) {
Serial.printf("[SettingsManager] Saved Debug state = %s\n", enabled ? "ON" : "OFF");
}
void saveSleepState(bool enabled) {
preferences.begin(NVS_NAMESPACE, false);
preferences.putBool(NVS_KEY_SLEEP_ENABLED, enabled);
preferences.end();
Serial.printf("[SettingsManager] Saved Sleep state = %s\n", enabled ? "ON" : "OFF");
}
bool loadSleepState() {
preferences.begin(NVS_NAMESPACE, true);
bool enabled = preferences.getBool(NVS_KEY_SLEEP_ENABLED, false);
preferences.end();
return enabled;
}
bool loadDebugState() {
preferences.begin(NVS_NAMESPACE, true); // read-only mode
bool enabled = preferences.getBool(NVS_KEY_DEBUG_ENABLED, false); // default: OFF