extra check for command "log w"

This commit is contained in:
Paul
2019-11-17 19:28:22 +01:00
parent 14b21aeeee
commit 4d8bc392a0

View File

@@ -1310,7 +1310,7 @@ void TelnetCommandCallback(uint8_t wc, const char * commandLine) {
} else if (strcmp(second_cmd, "j") == 0) { } else if (strcmp(second_cmd, "j") == 0) {
ems_setLogging(EMS_SYS_LOGGING_JABBER); ems_setLogging(EMS_SYS_LOGGING_JABBER);
ok = true; 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 ems_setLogging(EMS_SYS_LOGGING_WATCH, _readHexNumber()); // get type_id
ok = true; ok = true;
} }