diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-03-16 18:25:09 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-03-16 18:25:09 +0400 |
commit | 8818425e584c9670dfa9a823b3dfd95147c087d4 (patch) | |
tree | 533aab664188eb2f7bd1abbed353b513f86c92c1 /src/modules/commander/state_machine_helper.cpp | |
parent | 85b7670b44d0af1141fae73593f68d8469846d8d (diff) | |
download | px4-firmware-8818425e584c9670dfa9a823b3dfd95147c087d4.tar.gz px4-firmware-8818425e584c9670dfa9a823b3dfd95147c087d4.tar.bz2 px4-firmware-8818425e584c9670dfa9a823b3dfd95147c087d4.zip |
commander: fixed message formatting when disabling sensors publishing in HIL mode
Diffstat (limited to 'src/modules/commander/state_machine_helper.cpp')
-rw-r--r-- | src/modules/commander/state_machine_helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp index 31955d3e5..bf49403d0 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -350,7 +350,7 @@ int hil_state_transition(hil_state_t new_state, int status_pub, struct vehicle_s int block_ret = ::ioctl(sensfd, DEVIOCSPUBBLOCK, 0); close(sensfd); - printf("Disabling %s\n: %s", direntry->d_name, (!block_ret) ? "OK" : "FAIL"); + printf("Disabling %s: %s\n", direntry->d_name, (block_ret == OK) ? "OK" : "ERROR"); } closedir(d); |