mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 05:10:35 +08:00
mavlink_orb_subscription: minor optimization and comment fix
This commit is contained in:
@@ -98,6 +98,10 @@ MavlinkOrbSubscription::update(const hrt_abstime t)
|
||||
bool
|
||||
MavlinkOrbSubscription::is_published()
|
||||
{
|
||||
if (_published) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool updated;
|
||||
orb_check(_fd, &updated);
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
* Check if the topic has been published.
|
||||
*
|
||||
* This call will return true if the topic was ever published.
|
||||
* @param true if the topic has been published at least once.
|
||||
* @return true if the topic has been published at least once.
|
||||
*/
|
||||
bool is_published();
|
||||
void *get_data();
|
||||
|
||||
Reference in New Issue
Block a user