forked from Archive/PX4-Autopilot
px4 subscriber/nuttx: don't call null callback
This commit is contained in:
parent
24fd5759b5
commit
e622430460
|
@ -115,6 +115,10 @@ public:
|
||||||
*/
|
*/
|
||||||
void update()
|
void update()
|
||||||
{
|
{
|
||||||
|
if (_callback == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!uORB::Subscription<M>::updated()) {
|
if (!uORB::Subscription<M>::updated()) {
|
||||||
/* Topic not updated, do not call callback */
|
/* Topic not updated, do not call callback */
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue