Enable a workaround for #5438 (#5450)

* Enable a workaround for #5438

* Disable Travis Slack integration

* Fix formatting
This commit is contained in:
Lorenz Meier 2016-09-06 23:34:02 +02:00 committed by GitHub
parent 78df9de4c4
commit e011a528eb
2 changed files with 12 additions and 1 deletions

View File

@ -130,4 +130,4 @@ notifications:
- secure: "QKw73Zel/s3JAbe/7XyO9tPnJwiiGFpYzSjdR8lG3tYFjRdXZnhxG4c+G7bkgkaPTS4Hult33VXE3kcEqOI7+C+eRwRlZhDfL0knQbXVCxjcLjzmUFdoPOwurlgZDw66PFWCi5tZcLKSRo3u4U8ibT4WKi3jm9sDSyOcfBAucMU="
on_pull_requests: false
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

View File

@ -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);