diff --git a/src/modules/uORB/uORBDevices_posix.cpp b/src/modules/uORB/uORBDevices_posix.cpp index c80824d39b..8042a5d6ea 100644 --- a/src/modules/uORB/uORBDevices_posix.cpp +++ b/src/modules/uORB/uORBDevices_posix.cpp @@ -284,7 +284,7 @@ uORB::DeviceNode::publish(const orb_metadata *meta, orb_advert_t handle, const v { //warnx("uORB::DeviceNode::publish meta = %p", meta); - if (handle < 0) { + if (handle == 0) { warnx("uORB::DeviceNode::publish called with invalid handle"); errno = EINVAL; return ERROR;