Support syslog updates every sleep

Support syslog updates every sleep or every second if `#define SYSLOG_UPDATE_SECOND` (#20260)
This commit is contained in:
Theo Arends 2023-12-19 12:45:13 +01:00
parent 23b4cd08d4
commit b81eaf5bc8
4 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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) {

View File

@ -1142,6 +1142,9 @@ void PerformEverySecond(void)
}
MqttPublishLoggingAsync(false);
#ifdef SYSLOG_UPDATE_SECOND
SyslogAsync(false);
#endif // SYSLOG_UPDATE_SECOND
ResetGlobalValues();