Fix X10 power loop (fix #5270) (#5391)

* Fix X10 power loop (fix #5270)

* "EMERGENCY MODE" text wasn't visible anymore since d4a00dec3b
This commit is contained in:
Andre Bernet
2017-11-21 07:25:38 +01:00
committed by Bertrand Songis
parent 6fc40cb7cb
commit 39ea315c97
3 changed files with 17 additions and 12 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ uint32_t pwrPressedDuration(void);
#if defined(SIMU) || defined(NO_UNEXPECTED_SHUTDOWN)
#define UNEXPECTED_SHUTDOWN() (false)
#else
#define UNEXPECTED_SHUTDOWN() (powerupReason == DIRTY_SHUTDOWN)
#define UNEXPECTED_SHUTDOWN() ((powerupReason == DIRTY_SHUTDOWN) || WAS_RESET_BY_WATCHDOG_OR_SOFTWARE())
#endif
// Led driver