fix(radio): Don't update YAML files on SD card if radio in emergency mode (#4264)
This commit is contained in:
@@ -75,6 +75,9 @@ void storageFormat()
|
|||||||
|
|
||||||
void storageCheck(bool immediately)
|
void storageCheck(bool immediately)
|
||||||
{
|
{
|
||||||
|
// Don't write anything to SD card if in EM
|
||||||
|
if (globalData.unexpectedShutdown) return;
|
||||||
|
|
||||||
if (storageDirtyMsk & EE_GENERAL) {
|
if (storageDirtyMsk & EE_GENERAL) {
|
||||||
TRACE("eeprom write general");
|
TRACE("eeprom write general");
|
||||||
storageDirtyMsk &= ~EE_GENERAL;
|
storageDirtyMsk &= ~EE_GENERAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user