text changes

This commit is contained in:
Paul
2019-09-20 12:46:45 +02:00
parent 489fdf452e
commit 5b39783a3a
3 changed files with 14 additions and 5 deletions

View File

@@ -1554,7 +1554,7 @@ void TelnetCommandCallback(uint8_t wc, const char * commandLine) {
}
// send raw
if (strcmp(first_cmd, "send") == 0) {
if ((strcmp(first_cmd, "send") == 0) && (wc > 1)) {
ems_sendRawTelegram((char *)&commandLine[5]);
ok = true;
}
@@ -1567,7 +1567,7 @@ void TelnetCommandCallback(uint8_t wc, const char * commandLine) {
// check for invalid command
if (!ok) {
myDebug_P(PSTR("Unknown command. Use ? for help."));
myDebug_P(PSTR("Unknown command or wrong number of arguments. Use ? for help."));
}
}