mavlink: bug in telemetry_status publication fixed

This commit is contained in:
Anton Babushkin 2014-02-12 13:20:15 +01:00
parent 179aa17a38
commit 3d83c45f75
1 changed files with 1 additions and 1 deletions

View File

@ -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 {