diff options
Diffstat (limited to 'apps/uORB/uORB.cpp')
-rw-r--r-- | apps/uORB/uORB.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/uORB/uORB.cpp b/apps/uORB/uORB.cpp index 270e3861c..1e7cdc8db 100644 --- a/apps/uORB/uORB.cpp +++ b/apps/uORB/uORB.cpp @@ -728,7 +728,8 @@ uorb_main(int argc, char *argv[]) if (g_dev != nullptr) { fprintf(stderr, "[uorb] already loaded\n"); - return -EBUSY; + /* user wanted to start uorb, its already running, no error */ + return 0; } /* create the driver */ @@ -759,10 +760,10 @@ uorb_main(int argc, char *argv[]) /* * Print driver information. */ - if (!strcmp(argv[1], "info")) + if (!strcmp(argv[1], "status")) return info(); - fprintf(stderr, "unrecognised command, try 'start', 'test' or 'info'\n"); + fprintf(stderr, "unrecognised command, try 'start', 'test' or 'status'\n"); return -EINVAL; } |