refactor: IWDG driver and EM trigger (#3846)
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "modelslist.h"
|
||||
#include "model_init.h"
|
||||
|
||||
#include "hal/abnormal_reboot.h"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#include "theme.h"
|
||||
#endif
|
||||
@@ -76,7 +78,7 @@ void storageFormat()
|
||||
void storageCheck(bool immediately)
|
||||
{
|
||||
// Don't write anything to SD card if in EM
|
||||
if (globalData.unexpectedShutdown) return;
|
||||
if (UNEXPECTED_SHUTDOWN()) return;
|
||||
|
||||
if (storageDirtyMsk & EE_GENERAL) {
|
||||
TRACE("eeprom write general");
|
||||
|
||||
Reference in New Issue
Block a user