diff --git a/src/drivers/bmi055/bmi055_gyro.cpp b/src/drivers/bmi055/bmi055_gyro.cpp index eec6d250a8c..e27e798e562 100644 --- a/src/drivers/bmi055/bmi055_gyro.cpp +++ b/src/drivers/bmi055/bmi055_gyro.cpp @@ -473,12 +473,6 @@ BMI055_gyro::ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCSELFTEST: return gyro_self_test(); -#ifdef GYROIOCGHWLOWPASS - - case GYROIOCGHWLOWPASS: - return _dlpf_freq; -#endif - default: /* give it to the superclass */ return SPI::ioctl(filp, cmd, arg); diff --git a/src/drivers/bmi160/bmi160.cpp b/src/drivers/bmi160/bmi160.cpp index 1ac50feafd9..7f9ce9621bb 100644 --- a/src/drivers/bmi160/bmi160.cpp +++ b/src/drivers/bmi160/bmi160.cpp @@ -824,12 +824,6 @@ BMI160::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCSELFTEST: return gyro_self_test(); -#ifdef GYROIOCGHWLOWPASS - - case GYROIOCGHWLOWPASS: - return _dlpf_freq; -#endif - default: /* give it to the superclass */ return SPI::ioctl(filp, cmd, arg); diff --git a/src/drivers/drv_gyro.h b/src/drivers/drv_gyro.h index 209f1030b88..de1951294b2 100644 --- a/src/drivers/drv_gyro.h +++ b/src/drivers/drv_gyro.h @@ -100,9 +100,6 @@ struct gyro_calibration_s { /** check the status of the sensor */ #define GYROIOCSELFTEST _GYROIOC(8) -/** get the hardware low-pass filter cut-off in Hz*/ -#define GYROIOCGHWLOWPASS _GYROIOC(10) - /** determine if hardware is external or onboard */ #define GYROIOCGEXTERNAL _GYROIOC(12) diff --git a/src/drivers/mpu9250/mpu9250.cpp b/src/drivers/mpu9250/mpu9250.cpp index 9159bdc1cb8..fbbaa4c1512 100644 --- a/src/drivers/mpu9250/mpu9250.cpp +++ b/src/drivers/mpu9250/mpu9250.cpp @@ -1004,12 +1004,6 @@ MPU9250::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCSELFTEST: return gyro_self_test(); -#ifdef GYROIOCGHWLOWPASS - - case GYROIOCGHWLOWPASS: - return _dlpf_freq; -#endif - default: /* give it to the superclass */ return CDev::ioctl(filp, cmd, arg);