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:
parent
1d42d329cf
commit
7da9aa811a
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue