mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
Hotfix: Fix program flow for uORB non-published topics
This commit is contained in:
+4
-1
@@ -430,8 +430,10 @@ ORBDevNode::appears_updated(SubscriberData *sd)
|
|||||||
irqstate_t state = irqsave();
|
irqstate_t state = irqsave();
|
||||||
|
|
||||||
/* check if this topic has been published yet, if not bail out */
|
/* check if this topic has been published yet, if not bail out */
|
||||||
if (_data == nullptr)
|
if (_data == nullptr) {
|
||||||
ret = false;
|
ret = false;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the subscriber's generation count matches the update generation
|
* If the subscriber's generation count matches the update generation
|
||||||
@@ -489,6 +491,7 @@ ORBDevNode::appears_updated(SubscriberData *sd)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out:
|
||||||
irqrestore(state);
|
irqrestore(state);
|
||||||
|
|
||||||
/* consider it updated */
|
/* consider it updated */
|
||||||
|
|||||||
Reference in New Issue
Block a user