mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix compile warnings/errors
This commit is contained in:
@@ -300,6 +300,7 @@ void EMSESPShell::add_console_commands() {
|
|||||||
"local");
|
"local");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
commands->add_command(ShellContext::MAIN,
|
commands->add_command(ShellContext::MAIN,
|
||||||
CommandFlags::USER,
|
CommandFlags::USER,
|
||||||
flash_string_vector{F_(set), F_(timeout)},
|
flash_string_vector{F_(set), F_(timeout)},
|
||||||
@@ -309,6 +310,7 @@ void EMSESPShell::add_console_commands() {
|
|||||||
telnet_.initial_idle_timeout(value * 60);
|
telnet_.initial_idle_timeout(value * 60);
|
||||||
shell.printfln(F("Telnet timout is %d minutes"), value);
|
shell.printfln(F("Telnet timout is %d minutes"), value);
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
|
|
||||||
commands->add_command(ShellContext::MAIN,
|
commands->add_command(ShellContext::MAIN,
|
||||||
CommandFlags::ADMIN,
|
CommandFlags::ADMIN,
|
||||||
|
|||||||
@@ -1693,12 +1693,7 @@ bool Thermostat::set_wwonetime(const char * value, const int8_t id) {
|
|||||||
}
|
}
|
||||||
char s[7];
|
char s[7];
|
||||||
LOG_INFO(F("Setting warm water onetime to %s"), Helpers::render_boolean(s, b));
|
LOG_INFO(F("Setting warm water onetime to %s"), Helpers::render_boolean(s, b));
|
||||||
if (b) {
|
write_command(0x02F5, 11, b ? 0xFF : 0x00, 0x031D);
|
||||||
write_command(0x031D, 0, 1);
|
|
||||||
write_command(0x031D, 2, 2, 0x031D);
|
|
||||||
} else {
|
|
||||||
write_command(0x031D, 0, 0, 0x031D);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ void System::syslog_init() {
|
|||||||
if (!syslog_enabled_) {
|
if (!syslog_enabled_) {
|
||||||
syslog_.log_level((uuid::log::Level)-1);
|
syslog_.log_level((uuid::log::Level)-1);
|
||||||
syslog_.mark_interval(0);
|
syslog_.mark_interval(0);
|
||||||
syslog_.destination(0);
|
syslog_.destination((IPAddress)0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user