Skip to content

Commit

Permalink
fix(radio): Don't update YAML files on SD card if radio in emergency …
Browse files Browse the repository at this point in the history
…mode (#4264)
  • Loading branch information
philmoz authored and pfeerick committed Nov 4, 2023
1 parent 9cb22a0 commit effe685
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radio/src/storage/sdcard_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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;
Expand Down

0 comments on commit effe685

Please sign in to comment.