forked from Archive/PX4-Autopilot
tfmini remove obsolete IOCTLs
This commit is contained in:
parent
49bed47924
commit
9d61febd39
|
@ -451,25 +451,10 @@ TFMINI::ioctl(struct file *filp, int cmd, unsigned long arg)
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
case SENSORIOCGQUEUEDEPTH:
|
|
||||||
return _reports->size();
|
|
||||||
|
|
||||||
case SENSORIOCRESET:
|
case SENSORIOCRESET:
|
||||||
/* XXX implement this */
|
/* XXX implement this */
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
case RANGEFINDERIOCSETMINIUMDISTANCE: {
|
|
||||||
set_minimum_distance(*(float *)arg);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case RANGEFINDERIOCSETMAXIUMDISTANCE: {
|
|
||||||
set_maximum_distance(*(float *)arg);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* give it to the superclass */
|
/* give it to the superclass */
|
||||||
return CDev::ioctl(filp, cmd, arg);
|
return CDev::ioctl(filp, cmd, arg);
|
||||||
|
|
Loading…
Reference in New Issue