forked from Archive/PX4-Autopilot
mavlink: bug in telemetry_status publication fixed
This commit is contained in:
parent
179aa17a38
commit
3d83c45f75
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue