From 935fa3519ca2ebedfdec915f663950cd2101e593 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 9 Jan 2024 13:43:26 +0100 Subject: [PATCH] Fix display of source IP when restarting from UI button (#20443) --- tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino index 20ce791f0..a3ec87e0b 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino @@ -534,7 +534,7 @@ void ShowWebSource(uint32_t source) { if ((source > 0) && (source < SRC_MAX)) { char stemp1[20]; - AddLog(LOG_LEVEL_DEBUG, PSTR("SRC: %s from %_I"), GetTextIndexed(stemp1, sizeof(stemp1), source, kCommandSource), (uint32_t)Webserver->client().remoteIP()); + AddLog(LOG_LEVEL_DEBUG, PSTR("SRC: %s from %s"), GetTextIndexed(stemp1, sizeof(stemp1), source, kCommandSource), Webserver->client().remoteIP().toString().c_str()); } } @@ -1075,8 +1075,6 @@ void WebRestart(uint32_t type) { WSContentSpaceButton(BUTTON_MAIN); } } - WSContentStop(); - if (!(2 == type)) { AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP D_RESTART)); ShowWebSource(SRC_WEBGUI); @@ -1085,6 +1083,7 @@ void WebRestart(uint32_t type) { #endif // ESP32 TasmotaGlobal.restart_flag = 2; } + WSContentStop(); } /*********************************************************************************************/