mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 06:41:36 +08:00
Fix MAVLink subscription
This commit is contained in:
@@ -170,6 +170,9 @@ MavlinkOrbSubscription::is_published()
|
|||||||
// If it does not exist its not published
|
// If it does not exist its not published
|
||||||
if (orb_exists(_topic, _instance)) {
|
if (orb_exists(_topic, _instance)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
} else if (_fd < 0) {
|
||||||
|
_fd = orb_subscribe_multi(_topic, _instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool updated;
|
bool updated;
|
||||||
|
|||||||
Reference in New Issue
Block a user