@ -532,19 +532,6 @@ ACCELSIM::devIOCTL(unsigned long cmd, unsigned long arg)
@@ -532,19 +532,6 @@ ACCELSIM::devIOCTL(unsigned long cmd, unsigned long arg)
}
}
caseSENSORIOCSQUEUEDEPTH:{
/* lower bound is mandatory, upper bound is a sanity check */
if((ul_arg<1)||(ul_arg>100)){
return-EINVAL;
}
if(!_accel_reports->resize(ul_arg)){
return-ENOMEM;
}
returnOK;
}
caseSENSORIOCRESET:
// Nothing to do for simulator
returnOK;
@ -612,19 +599,6 @@ ACCELSIM::mag_ioctl(unsigned long cmd, unsigned long arg)
@@ -612,19 +599,6 @@ ACCELSIM::mag_ioctl(unsigned long cmd, unsigned long arg)
}
}
caseSENSORIOCSQUEUEDEPTH:{
/* lower bound is mandatory, upper bound is a sanity check */
@ -667,19 +667,6 @@ GYROSIM::devIOCTL(unsigned long cmd, unsigned long arg)
@@ -667,19 +667,6 @@ GYROSIM::devIOCTL(unsigned long cmd, unsigned long arg)
}
}
caseSENSORIOCSQUEUEDEPTH:{
/* lower bound is mandatory, upper bound is a sanity check */
if((arg<1)||(arg>100)){
return-EINVAL;
}
if(!_accel_reports->resize(arg)){
return-ENOMEM;
}
returnOK;
}
caseACCELIOCSSCALE:{
/* copy scale, but only if off by a few percent */
@ -710,19 +697,6 @@ GYROSIM::gyro_ioctl(unsigned long cmd, unsigned long arg)
@@ -710,19 +697,6 @@ GYROSIM::gyro_ioctl(unsigned long cmd, unsigned long arg)
caseSENSORIOCRESET:
returndevIOCTL(cmd,arg);
caseSENSORIOCSQUEUEDEPTH:{
/* lower bound is mandatory, upper bound is a sanity check */
@ -103,24 +103,6 @@ int UavcanBarometerBridge::ioctl(struct file *filp, int cmd, unsigned long arg)
@@ -103,24 +103,6 @@ int UavcanBarometerBridge::ioctl(struct file *filp, int cmd, unsigned long arg)
returnOK;
}
caseSENSORIOCSQUEUEDEPTH:{
/* lower bound is mandatory, upper bound is a sanity check */