orb: add orb_get_interval to API

This commit is contained in:
Beat Küng
2016-06-06 15:27:29 +02:00
committed by Lorenz Meier
parent 0fb0f17ccb
commit e709048fb8
7 changed files with 41 additions and 1 deletions
+4
View File
@@ -311,6 +311,10 @@ uORB::DeviceNode::ioctl(struct file *filp, int cmd, unsigned long arg)
//and only one advertiser is allowed to open the DeviceNode at the same time.
return update_queue_size(arg);
case ORBIOCGETINTERVAL:
*(unsigned *)arg = sd->update_interval;
return OK;
default:
/* give it to the superclass */
return CDev::ioctl(filp, cmd, arg);