mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
Fix MAVLink subscription
This commit is contained in:
1 parent
8dc8ae7de8
commit
15e50b26dc
1 file changed
+3
@@ -170,6 +170,9 @@ MavlinkOrbSubscription::is_published()
|
||||
// If it does not exist its not published
|
||||
if (orb_exists(_topic, _instance)) {
|
||||
return false;
|
||||
|
||||
} else if (_fd < 0) {
|
||||
_fd = orb_subscribe_multi(_topic, _instance);
|
||||
}
|
||||
|
||||
bool updated;
|
||||
|
||||
Reference in new issue
Block a user