Hotfix: return correct value for orb_check() for never-published topics

This commit is contained in:
Lorenz Meier
2013-03-01 09:42:39 +01:00
parent 2e321f273c
commit 81594c1abc
+4
View File
@@ -429,6 +429,10 @@ ORBDevNode::appears_updated(SubscriberData *sd)
/* avoid racing between interrupt and non-interrupt context calls */
irqstate_t state = irqsave();
/* check if this topic has been published yet, if not bail out */
if (_data == nullptr)
ret = false;
/*
* If the subscriber's generation count matches the update generation
* count, there has been no update from their perspective; if they