fix static analysis warnings

This commit is contained in:
proddy
2022-02-18 20:28:15 +01:00
parent 33835fef7b
commit fb05558ab9
6 changed files with 18 additions and 18 deletions

View File

@@ -252,7 +252,9 @@ void System::format(uuid::console::Shell & shell) {
}
void System::syslog_init() {
#ifndef EMSESP_STANDALONE
bool was_enabled = syslog_enabled_;
#endif
EMSESP::webSettingsService.read([&](WebSettings & settings) {
syslog_enabled_ = settings.syslog_enabled;
syslog_level_ = settings.syslog_level;