mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 20:00:36 +08:00
Sync state_machine_helper_posix to state_machine_helper
state_machine_helper_posix.cpp was out of sync with state_machine_helper_posix.cpp. Added debug to detect when sensors is started before uorb. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -420,6 +420,13 @@ ssize_t
|
||||
ORBDevNode::publish(const orb_metadata *meta, orb_advert_t handle, const void *data)
|
||||
{
|
||||
PX4_DEBUG("ORBDevNode::publish meta = %p\n", meta);
|
||||
|
||||
if (handle < 0) {
|
||||
PX4_DEBUG("ORBDevNode::publish called with invalid handle\n", meta);
|
||||
errno = EINVAL;
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
ORBDevNode *devnode = (ORBDevNode *)handle;
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user