Skip to content

Commit

Permalink
shell/cord_ep: Add user guidance & prevent accidental crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Teufelchen1 committed May 4, 2022
1 parent 126ed47 commit d34dcdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/shell/commands/sc_cord_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ int _cord_ep_handler(int argc, char **argv)
}
if (argc > 3) {
regif = argv[3];
if (regif[0] != '/') {
puts("error: registration interface must start with '/'");
return 1;
}
}
puts("Registering with RD now, this may take a short while...");
if (cord_ep_register(&remote, regif) != CORD_EP_OK) {
Expand Down

0 comments on commit d34dcdb

Please sign in to comment.