diff options
Diffstat (limited to 'apps/examples')
-rw-r--r-- | apps/examples/px4_deamon_app/px4_deamon_app.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/examples/px4_deamon_app/px4_deamon_app.c b/apps/examples/px4_deamon_app/px4_deamon_app.c index 9d1b40acf..053163789 100644 --- a/apps/examples/px4_deamon_app/px4_deamon_app.c +++ b/apps/examples/px4_deamon_app/px4_deamon_app.c @@ -60,20 +60,6 @@ int px4_deamon_thread_main(int argc, char *argv[]); */ static void usage(const char *reason); -int px4_deamon_thread_main(int argc, char *argv[]) { - - printf("[deamon] starting\n"); - - while (!thread_should_exit) { - printf("Hello Deamon!\n"); - sleep(10); - } - - printf("[deamon] exiting.\n"); - - return 0; -} - static void usage(const char *reason) { @@ -127,3 +113,17 @@ int px4_deamon_app_main(int argc, char *argv[]) usage("unrecognized command"); exit(1); } + +int px4_deamon_thread_main(int argc, char *argv[]) { + + printf("[deamon] starting\n"); + + while (!thread_should_exit) { + printf("Hello Deamon!\n"); + sleep(10); + } + + printf("[deamon] exiting.\n"); + + return 0; +} |