diff --git a/CHANGELOG.md b/CHANGELOG.md index a5e0040d6..2609fcd7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. - Refactoring of Berry `animate` module for WS2812 Leds (#20236) ### Changed +- Support syslog updates every sleep or every second if `#define SYSLOG_UPDATE_SECOND` (#20260) ### Fixed - Matter Contact sensor was not triggering any update (#20232) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index dd63b29dc..2d809a33a 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -126,6 +126,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm - Refactoring of Berry `animate` module for WS2812 Leds [#20236](https://github.com/arendst/Tasmota/issues/20236) ### Changed +- Support syslog updates every sleep or every second if `#define SYSLOG_UPDATE_SECOND` [#20260](https://github.com/arendst/Tasmota/issues/20260) ### Fixed - CVE-2021-36603 Cross Site Scripting (XSS) vulnerability [#12221](https://github.com/arendst/Tasmota/issues/12221) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 926839510..1cf661f04 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -887,7 +887,9 @@ void Scheduler(void) { #endif // USE_ARDUINO_OTA #endif // ESP8266 +#ifndef SYSLOG_UPDATE_SECOND SyslogAsync(false); +#endif // SYSLOG_UPDATE_SECOND } void loop(void) { diff --git a/tasmota/tasmota_support/support_tasmota.ino b/tasmota/tasmota_support/support_tasmota.ino index 5df42a0d2..94c431e86 100644 --- a/tasmota/tasmota_support/support_tasmota.ino +++ b/tasmota/tasmota_support/support_tasmota.ino @@ -1142,6 +1142,9 @@ void PerformEverySecond(void) } MqttPublishLoggingAsync(false); +#ifdef SYSLOG_UPDATE_SECOND + SyslogAsync(false); +#endif // SYSLOG_UPDATE_SECOND ResetGlobalValues();