1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

[TARANIS/HORUS] UNEXPECTED_SHUTDOWN() macro improved following @projectkk2glider advice

This commit is contained in:
Bertrand Songis 2016-12-19 22:55:33 +01:00
parent 1d42d329cf
commit 7da9aa811a
2 changed files with 2 additions and 2 deletions

View file

@ -338,7 +338,7 @@ void pwrResetHandler(void);
uint32_t pwrPressed(void);
uint32_t pwrPressedDuration(void);
#define pwroffPressed() pwrPressed()
#define UNEXPECTED_SHUTDOWN() (WAS_RESET_BY_WATCHDOG())
#define UNEXPECTED_SHUTDOWN() (WAS_RESET_BY_WATCHDOG() || g_eeGeneral.unexpectedShutdown)
// Led driver
void ledOff(void);

View file

@ -412,7 +412,7 @@ uint32_t pwrPressedDuration(void);
#else
uint32_t pwroffPressed(void);
#endif
#define UNEXPECTED_SHUTDOWN() (g_eeGeneral.unexpectedShutdown)
#define UNEXPECTED_SHUTDOWN() (WAS_RESET_BY_WATCHDOG() || g_eeGeneral.unexpectedShutdown)
// Backlight driver
void backlightInit(void);