Don't attempt to save NodeDB on low-batt shutdown to prevent FS corruption (#5312)

This commit is contained in:
Ben Meadors
2024-11-12 06:17:26 -06:00
committed by GitHub
parent ff33a27789
commit a84324c4fa
9 changed files with 24 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ int32_t PowerTelemetryModule::runOnce()
uint32_t nightyNightMs = Default::getConfiguredOrDefaultMs(moduleConfig.telemetry.power_update_interval,
default_telemetry_broadcast_interval_secs);
LOG_DEBUG("Sleep for %ims, then awake to send metrics again", nightyNightMs);
doDeepSleep(nightyNightMs, true);
doDeepSleep(nightyNightMs, true, false);
}
uint32_t result = UINT32_MAX;