refactor: IWDG driver and EM trigger (#3846)

This commit is contained in:
Raphael Coeffic
2023-12-04 07:14:25 +10:00
committed by GitHub
parent e18a2a90a4
commit 5153aaeea0
89 changed files with 1204 additions and 3202 deletions
+3 -1
View File
@@ -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");