diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-02-12 13:20:15 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-02-12 13:20:15 +0100 |
commit | 3d83c45f7585c71bee3f07ea414d798ab7e2bae5 (patch) | |
tree | 3dfe322c1cc0baa114741a63ef28fbf6c14a8b49 /src/modules/mavlink/mavlink_receiver.cpp | |
parent | 179aa17a3842bb68fa3849e890d20cfb9a1a5392 (diff) | |
download | px4-firmware-3d83c45f7585c71bee3f07ea414d798ab7e2bae5.tar.gz px4-firmware-3d83c45f7585c71bee3f07ea414d798ab7e2bae5.tar.bz2 px4-firmware-3d83c45f7585c71bee3f07ea414d798ab7e2bae5.zip |
mavlink: bug in telemetry_status publication fixed
Diffstat (limited to 'src/modules/mavlink/mavlink_receiver.cpp')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index a371a499e..1dbe56495 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -351,7 +351,7 @@ handle_message(mavlink_message_t *msg) tstatus.rxerrors = rstatus.rxerrors; tstatus.fixed = rstatus.fixed; - if (telemetry_status_pub == 0) { + if (telemetry_status_pub <= 0) { telemetry_status_pub = orb_advertise(ORB_ID(telemetry_status), &tstatus); } else { |