mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 19:13:33 +08:00
spinOnce() fix
This commit is contained in:
@@ -127,6 +127,15 @@ public:
|
|||||||
return -ErrNotInited;
|
return -ErrNotInited;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int spinOnce()
|
||||||
|
{
|
||||||
|
if (started_)
|
||||||
|
{
|
||||||
|
return INode::spinOnce();
|
||||||
|
}
|
||||||
|
return -ErrNotInited;
|
||||||
|
}
|
||||||
|
|
||||||
bool isStarted() const { return started_; }
|
bool isStarted() const { return started_; }
|
||||||
|
|
||||||
uint64_t getInternalFailureCount() const { return internal_failure_cnt_; }
|
uint64_t getInternalFailureCount() const { return internal_failure_cnt_; }
|
||||||
|
|||||||
Reference in New Issue
Block a user