diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-18 15:20:36 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-18 15:20:36 +0200 |
commit | e19d2e94ec5c38c2800a7001a2a04102734012d4 (patch) | |
tree | e4bf0cfc838eb7d462afefbd2e35f6183d904689 /src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp | |
parent | a5c8d8c5f20584f32acaa03e69681a13799fff6d (diff) | |
download | px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.tar.gz px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.tar.bz2 px4-firmware-e19d2e94ec5c38c2800a7001a2a04102734012d4.zip |
Hotfix: Ensured there are never two filters running at the same time if auto-magic happens via USB link
Diffstat (limited to 'src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp')
-rwxr-xr-x | src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp b/src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp index 3ca50fb39..107c2dfb1 100755 --- a/src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp +++ b/src/modules/attitude_estimator_so3_comp/attitude_estimator_so3_comp_main.cpp @@ -139,10 +139,12 @@ int attitude_estimator_so3_comp_main(int argc, char *argv[]) if (!strcmp(argv[1], "status")) { if (thread_running) { - printf("\tattitude_estimator_so3_comp app is running\n"); + warnx("running"); + exit(0); } else { - printf("\tattitude_estimator_so3_comp app not started\n"); + warnx("not started"); + exit(1); } exit(0); |