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
@@ -264,7 +264,7 @@ class DefaultTheme: public Theme
virtual void update() const
{
uint32_t color = g_eeGeneral.themeData.options[1].unsignedValue;
uint32_t bg_color = g_eeGeneral.themeData.options[0].unsignedValue;
uint32_t bg_color = UNEXPECTED_SHUTDOWN() ? WHITE : g_eeGeneral.themeData.options[0].unsignedValue;
lcdColorTable[TEXT_BGCOLOR_INDEX] = bg_color;
lcdColorTable[TEXT_INVERTED_BGCOLOR_INDEX] = color;