From 25a660bdecb0731ec263930c29e3907bbd000355 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 20 Dec 2020 17:15:22 +0100 Subject: [PATCH] Update support.ino --- tasmota/support.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 16dd1927e..54f7f11c8 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1930,8 +1930,11 @@ void SyslogAsync(void) { char* line; size_t len; while (GetLog(TasmotaGlobal.syslog_level, &index, &line, &len)) { - if (len > 13) { - strlcpy(TasmotaGlobal.log_data, line +13, len -13); // Skip mxtime + // 00:00:00.110 Project tasmota Wemos5 Version 9.2.0.1(theo)-2_7_4_9(2020-12-20T17:09:26) + // Project tasmota Wemos5 Version 9.2.0.1(theo)-2_7_4_9(2020-12-20T17:09:26) + uint32_t mxtime = strchr(line, ' ') - line +1; // Remove mxtime + if (mxtime > 0) { + strlcpy(TasmotaGlobal.log_data, line +mxtime, len -mxtime); Syslog(); } }