Echo back invalid commands
This was really helpful when debugging dodgy serial connections - and shouldn't hurt anything in normal operations.
This commit is contained in:
parent
3997d66cde
commit
c38c0b7195
1 changed files with 3 additions and 1 deletions
|
|
@ -74,7 +74,9 @@ void handle_command(String received_command)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HELP
|
#ifdef HELP
|
||||||
comPort->println(F("Type 'help' for a list of commands."));
|
comPort->print(F("Command not recognised: '"));
|
||||||
|
comPort->print(received_command);
|
||||||
|
comPort->println(F("', Type 'help' for a list of commands."));
|
||||||
#else
|
#else
|
||||||
comPort->println(F("Invalid command"));
|
comPort->println(F("Invalid command"));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue