aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-03-01 16:06:52 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-03-01 16:06:52 +0100
commit433c9548589ebdc1ed40ab9f478b00f531b7bb47 (patch)
tree5e5598a44bdce6c832ceb986b4d48282766dd813 /apps
parenteb9930de25c5d4da3df72dfd9c386572c1a76ee0 (diff)
downloadpx4-firmware-433c9548589ebdc1ed40ab9f478b00f531b7bb47.tar.gz
px4-firmware-433c9548589ebdc1ed40ab9f478b00f531b7bb47.tar.bz2
px4-firmware-433c9548589ebdc1ed40ab9f478b00f531b7bb47.zip
Hotfix: Fix program flow for uORB non-published topics
Diffstat (limited to 'apps')
-rw-r--r--apps/uORB/uORB.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/uORB/uORB.cpp b/apps/uORB/uORB.cpp
index 41f399f2c..7abbf42ae 100644
--- a/apps/uORB/uORB.cpp
+++ b/apps/uORB/uORB.cpp
@@ -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 */