From e2ec826dec98bacaf74bcbf3155f7bfa798e75f2 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 17 Dec 2020 17:41:53 +0100 Subject: [PATCH] Fix log buffer eot mark location --- tasmota/support.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 1411a1953..8c2aadeb8 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1972,7 +1972,7 @@ void AddLog(uint32_t loglevel) TasmotaGlobal.web_log_index++; // Index 0 is not allowed as it is the end of char string } while (TasmotaGlobal.web_log_index == TasmotaGlobal.web_log[0] || // If log already holds the next index, remove it - strlen(TasmotaGlobal.web_log) + strlen(TasmotaGlobal.log_data) + 13 > WEB_LOG_SIZE) // 13 = web_log_index + mxtime + '\1' + '\0' + strlen(TasmotaGlobal.web_log) + strlen(TasmotaGlobal.log_data) + strlen(mxtime) + 4 > WEB_LOG_SIZE) // 4 = web_log_index + '\1' + '\0' { char* it = TasmotaGlobal.web_log; it++; // Skip web_log_index