mirror of https://github.com/arendst/Tasmota.git
GUI Show SafeMode instead of Minimal
This commit is contained in:
parent
f24894b25c
commit
1718428f95
|
@ -243,7 +243,11 @@ const char HTTP_HEAD_STYLE3[] PROGMEM =
|
||||||
"<body>"
|
"<body>"
|
||||||
"<div style='text-align:left;display:inline-block;color:#%06x;min-width:340px;'>" // COLOR_TEXT
|
"<div style='text-align:left;display:inline-block;color:#%06x;min-width:340px;'>" // COLOR_TEXT
|
||||||
#ifdef FIRMWARE_MINIMAL
|
#ifdef FIRMWARE_MINIMAL
|
||||||
|
#ifdef FIRMWARE_SAFEMODE
|
||||||
|
"<div style='text-align:center;color:#%06x;'><h3>SafeMode</h3></div>" // COLOR_TEXT_SUCCESS
|
||||||
|
#else
|
||||||
"<div style='text-align:center;color:#%06x;'><h3>" D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "</h3></div>" // COLOR_TEXT_WARNING
|
"<div style='text-align:center;color:#%06x;'><h3>" D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "</h3></div>" // COLOR_TEXT_WARNING
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
"<div style='text-align:center;color:#%06x;'><noscript>" D_NOSCRIPT "<br></noscript>" // COLOR_TITLE
|
"<div style='text-align:center;color:#%06x;'><noscript>" D_NOSCRIPT "<br></noscript>" // COLOR_TITLE
|
||||||
/*
|
/*
|
||||||
|
@ -879,7 +883,11 @@ void WSContentSendStyle_P(const char* formatP, ...) {
|
||||||
}
|
}
|
||||||
WSContentSend_P(HTTP_HEAD_STYLE3, WebColor(COL_TEXT),
|
WSContentSend_P(HTTP_HEAD_STYLE3, WebColor(COL_TEXT),
|
||||||
#ifdef FIRMWARE_MINIMAL
|
#ifdef FIRMWARE_MINIMAL
|
||||||
|
#ifdef FIRMWARE_SAFEMODE
|
||||||
|
WebColor(COL_TEXT_SUCCESS),
|
||||||
|
#else
|
||||||
WebColor(COL_TEXT_WARNING),
|
WebColor(COL_TEXT_WARNING),
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
WebColor(COL_TITLE),
|
WebColor(COL_TITLE),
|
||||||
(Web.initial_config) ? "" : ModuleName().c_str(), SettingsText(SET_DEVICENAME));
|
(Web.initial_config) ? "" : ModuleName().c_str(), SettingsText(SET_DEVICENAME));
|
||||||
|
|
Loading…
Reference in New Issue