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:
Mark Charlebois
2015-04-21 22:04:01 -07:00
parent 3f7d4de74a
commit da29004a26
3 changed files with 35 additions and 65 deletions
+7
View File
@@ -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;