mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
extra check for command "log w"
This commit is contained in:
@@ -1310,7 +1310,7 @@ void TelnetCommandCallback(uint8_t wc, const char * commandLine) {
|
||||
} else if (strcmp(second_cmd, "j") == 0) {
|
||||
ems_setLogging(EMS_SYS_LOGGING_JABBER);
|
||||
ok = true;
|
||||
} else if (strcmp(second_cmd, "w") == 0) {
|
||||
} else if ((strcmp(second_cmd, "w") == 0) && (wc == 3)) {
|
||||
ems_setLogging(EMS_SYS_LOGGING_WATCH, _readHexNumber()); // get type_id
|
||||
ok = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user