aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB/uORB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/uORB/uORB.cpp')
-rw-r--r--src/modules/uORB/uORB.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/uORB/uORB.cpp b/src/modules/uORB/uORB.cpp
index b3a9bedb1..6f021459c 100644
--- a/src/modules/uORB/uORB.cpp
+++ b/src/modules/uORB/uORB.cpp
@@ -592,6 +592,11 @@ ORBDevMaster::ioctl(struct file *filp, int cmd, unsigned long arg)
char nodepath[orb_maxpath];
ORBDevNode *node;
+ /* set instance to zero - we could allow selective multi-pubs later based on value */
+ if (adv->instance != nullptr) {
+ *(adv->instance) = 0;
+ }
+
/* construct a path to the node - this also checks the node name */
ret = node_mkpath(nodepath, _flavor, meta, adv->instance);