mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +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 pwrPressed(void);
|
||||||
uint32_t pwrPressedDuration(void);
|
uint32_t pwrPressedDuration(void);
|
||||||
#define pwroffPressed() pwrPressed()
|
#define pwroffPressed() pwrPressed()
|
||||||
#define UNEXPECTED_SHUTDOWN() (WAS_RESET_BY_WATCHDOG())
|
#define UNEXPECTED_SHUTDOWN() (WAS_RESET_BY_WATCHDOG() || g_eeGeneral.unexpectedShutdown)
|
||||||
|
|
||||||
// Led driver
|
// Led driver
|
||||||
void ledOff(void);
|
void ledOff(void);
|
||||||
|
|
|
@ -412,7 +412,7 @@ uint32_t pwrPressedDuration(void);
|
||||||
#else
|
#else
|
||||||
uint32_t pwroffPressed(void);
|
uint32_t pwroffPressed(void);
|
||||||
#endif
|
#endif
|
||||||
#define UNEXPECTED_SHUTDOWN() (g_eeGeneral.unexpectedShutdown)
|
#define UNEXPECTED_SHUTDOWN() (WAS_RESET_BY_WATCHDOG() || g_eeGeneral.unexpectedShutdown)
|
||||||
|
|
||||||
// Backlight driver
|
// Backlight driver
|
||||||
void backlightInit(void);
|
void backlightInit(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue