Skip to content
Snippets Groups Projects
Commit e011a528 authored by Lorenz Meier's avatar Lorenz Meier Committed by GitHub
Browse files

Enable a workaround for #5438 (#5450)

* Enable a workaround for #5438

* Disable Travis Slack integration

* Fix formatting
parent 78df9de4
No related branches found
No related tags found
No related merge requests found
...@@ -130,4 +130,4 @@ notifications: ...@@ -130,4 +130,4 @@ notifications:
- secure: "QKw73Zel/s3JAbe/7XyO9tPnJwiiGFpYzSjdR8lG3tYFjRdXZnhxG4c+G7bkgkaPTS4Hult33VXE3kcEqOI7+C+eRwRlZhDfL0knQbXVCxjcLjzmUFdoPOwurlgZDw66PFWCi5tZcLKSRo3u4U8ibT4WKi3jm9sDSyOcfBAucMU=" - secure: "QKw73Zel/s3JAbe/7XyO9tPnJwiiGFpYzSjdR8lG3tYFjRdXZnhxG4c+G7bkgkaPTS4Hult33VXE3kcEqOI7+C+eRwRlZhDfL0knQbXVCxjcLjzmUFdoPOwurlgZDw66PFWCi5tZcLKSRo3u4U8ibT4WKi3jm9sDSyOcfBAucMU="
on_pull_requests: false on_pull_requests: false
on_success: never # options: [always|never|change] default: always on_success: never # options: [always|never|change] default: always
on_failure: change # options: [always|never|change] default: always on_failure: never # options: [always|never|change] default: always
...@@ -157,6 +157,15 @@ MavlinkOrbSubscription::is_published() ...@@ -157,6 +157,15 @@ MavlinkOrbSubscription::is_published()
return true; 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 // Telemetry can sustain an initial published check at 10 Hz
hrt_abstime now = hrt_absolute_time(); hrt_abstime now = hrt_absolute_time();
...@@ -175,6 +184,8 @@ MavlinkOrbSubscription::is_published() ...@@ -175,6 +184,8 @@ MavlinkOrbSubscription::is_published()
_fd = orb_subscribe_multi(_topic, _instance); _fd = orb_subscribe_multi(_topic, _instance);
} }
#endif
bool updated; bool updated;
orb_check(_fd, &updated); orb_check(_fd, &updated);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment