mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
formatting
This commit is contained in:
@@ -300,7 +300,7 @@ void EMSESPShell::add_console_commands() {
|
|||||||
// if logging is off, the watch won't show anything, show force it back to NOTICE
|
// if logging is off, the watch won't show anything, show force it back to NOTICE
|
||||||
if (shell.log_level() < Level::NOTICE) {
|
if (shell.log_level() < Level::NOTICE) {
|
||||||
shell.log_level(Level::NOTICE);
|
shell.log_level(Level::NOTICE);
|
||||||
shell.printfln(F("Force log level to notice"));
|
shell.printfln(F("Setting log level to Notice"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (watch == EMSESP::WATCH_ON) {
|
if (watch == EMSESP::WATCH_ON) {
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ void EMSdevice::register_mqtt_cmd(const __FlashStringHelper * cmd, cmdfunction_p
|
|||||||
Command::add(device_type_, cmd, f, flag);
|
Command::add(device_type_, cmd, f, flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
// register a call back function for a specific telegram type
|
// register a callback function for a specific telegram type
|
||||||
void EMSdevice::register_telegram_type(const uint16_t telegram_type_id, const __FlashStringHelper * telegram_type_name, bool fetch, process_function_p f) {
|
void EMSdevice::register_telegram_type(const uint16_t telegram_type_id, const __FlashStringHelper * telegram_type_name, bool fetch, process_function_p f) {
|
||||||
telegram_functions_.emplace_back(telegram_type_id, telegram_type_name, fetch, f);
|
telegram_functions_.emplace_back(telegram_type_id, telegram_type_name, fetch, f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user