mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 10:50:34 +08:00
uORB sub: Do not call orb_set_interval with zero
This commit is contained in:
@@ -84,7 +84,9 @@ SubscriptionBase::SubscriptionBase(const struct orb_metadata *meta,
|
||||
|
||||
if (_handle < 0) { warnx("sub failed"); }
|
||||
|
||||
orb_set_interval(getHandle(), interval);
|
||||
if (interval > 0) {
|
||||
orb_set_interval(getHandle(), interval);
|
||||
}
|
||||
}
|
||||
|
||||
bool SubscriptionBase::updated()
|
||||
|
||||
Reference in New Issue
Block a user