From 1a825db2b9a92ea3d533348bbbcbfafd3139faa4 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 14 Mar 2020 17:45:36 +0100 Subject: [PATCH] Fix ghost logging --- tasmota/support.ino | 2 ++ tasmota/support_tasmota.ino | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 8587c034b..d9693a3a4 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1669,6 +1669,8 @@ void AddLog(uint32_t loglevel) if (!global_state.wifi_down && (loglevel <= syslog_level)) { Syslog(); } + + prepped_loglevel = 0; } void AddLog_P(uint32_t loglevel, const char *formatP) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 19f592a18..c5e9c887f 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -809,7 +809,6 @@ void Every100mSeconds(void) if (prepped_loglevel) { AddLog(prepped_loglevel); - prepped_loglevel = 0; } if (latching_relay_pulse) {