fix(radio): Don't update YAML files on SD card if radio in emergency mode (#4264)

This commit is contained in:
philmoz
2023-11-04 15:23:24 +10:00
committed by GitHub
parent 4655c56f39
commit 89378e294f
+3
View File
@@ -75,6 +75,9 @@ void storageFormat()
void storageCheck(bool immediately)
{
// Don't write anything to SD card if in EM
if (globalData.unexpectedShutdown) return;
if (storageDirtyMsk & EE_GENERAL) {
TRACE("eeprom write general");
storageDirtyMsk &= ~EE_GENERAL;