mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 11:00:35 +08:00
* Enable a workaround for #5438 * Disable Travis Slack integration * Fix formatting
This commit is contained in:
@@ -157,6 +157,15 @@ MavlinkOrbSubscription::is_published()
|
||||
return true;
|
||||
}
|
||||
|
||||
// This is a workaround for this issue:
|
||||
// https://github.com/PX4/Firmware/issues/5438
|
||||
#if defined(__PX4_LINUX) || defined(__PX4_QURT)
|
||||
|
||||
if (_fd < 0) {
|
||||
_fd = orb_subscribe_multi(_topic, _instance);
|
||||
}
|
||||
|
||||
#else
|
||||
// Telemetry can sustain an initial published check at 10 Hz
|
||||
hrt_abstime now = hrt_absolute_time();
|
||||
|
||||
@@ -175,6 +184,8 @@ MavlinkOrbSubscription::is_published()
|
||||
_fd = orb_subscribe_multi(_topic, _instance);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
bool updated;
|
||||
orb_check(_fd, &updated);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user