diff options
Diffstat (limited to 'src/examples/publisher/publisher_start_nuttx.cpp')
-rw-r--r-- | src/examples/publisher/publisher_start_nuttx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/publisher/publisher_start_nuttx.cpp b/src/examples/publisher/publisher_start_nuttx.cpp index 405b3c987..4ff2cebfb 100644 --- a/src/examples/publisher/publisher_start_nuttx.cpp +++ b/src/examples/publisher/publisher_start_nuttx.cpp @@ -54,7 +54,7 @@ extern int main(int argc, char **argv); extern "C" __EXPORT int publisher_main(int argc, char *argv[]); int publisher_main(int argc, char *argv[]) { - if (argc < 1) { + if (argc < 2) { errx(1, "usage: publisher {start|stop|status}"); } |