From 1718428f95dc2587421cebc8e097b0eb1e2763fe Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 3 May 2022 11:19:02 +0200 Subject: [PATCH] GUI Show SafeMode instead of Minimal --- tasmota/xdrv_01_webserver.ino | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 683dc0b00..2c1646ab9 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -243,7 +243,11 @@ const char HTTP_HEAD_STYLE3[] PROGMEM = "" "
" // COLOR_TEXT #ifdef FIRMWARE_MINIMAL +#ifdef FIRMWARE_SAFEMODE + "

SafeMode

" // COLOR_TEXT_SUCCESS +#else "

" D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "

" // COLOR_TEXT_WARNING +#endif #endif "
" // COLOR_TITLE /* @@ -879,7 +883,11 @@ void WSContentSendStyle_P(const char* formatP, ...) { } WSContentSend_P(HTTP_HEAD_STYLE3, WebColor(COL_TEXT), #ifdef FIRMWARE_MINIMAL +#ifdef FIRMWARE_SAFEMODE + WebColor(COL_TEXT_SUCCESS), +#else WebColor(COL_TEXT_WARNING), +#endif #endif WebColor(COL_TITLE), (Web.initial_config) ? "" : ModuleName().c_str(), SettingsText(SET_DEVICENAME)); @@ -2970,7 +2978,7 @@ void HandleSwitchFactory(void) const esp_partition_t* partition = esp_ota_get_next_update_partition(nullptr); esp_ota_set_boot_partition(partition); } - + if (api_mode) { WSReturnSimpleString("false"); AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP D_RESTART));