mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 18:24:06 +08:00
Merge branch 'master' of github.com:PX4/Firmware into px4io-i2c
This commit is contained in:
commit
72a8ba074e
@ -430,8 +430,10 @@ ORBDevNode::appears_updated(SubscriberData *sd)
|
||||
irqstate_t state = irqsave();
|
||||
|
||||
/* check if this topic has been published yet, if not bail out */
|
||||
if (_data == nullptr)
|
||||
if (_data == nullptr) {
|
||||
ret = false;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/*
|
||||
* If the subscriber's generation count matches the update generation
|
||||
@ -489,6 +491,7 @@ ORBDevNode::appears_updated(SubscriberData *sd)
|
||||
break;
|
||||
}
|
||||
|
||||
out:
|
||||
irqrestore(state);
|
||||
|
||||
/* consider it updated */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user