From badcddc29a4e5678805488473676c5b710f897fd Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 14 Dec 2017 12:13:09 -0500 Subject: [PATCH] delete unused GYROIOCGEXTERNAL --- src/drivers/drv_gyro.h | 3 --- src/drivers/mpu6000/mpu6000.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/drivers/drv_gyro.h b/src/drivers/drv_gyro.h index 35440e0f67..92331baab5 100644 --- a/src/drivers/drv_gyro.h +++ b/src/drivers/drv_gyro.h @@ -94,9 +94,6 @@ struct gyro_calibration_s { /** check the status of the sensor */ #define GYROIOCSELFTEST _GYROIOC(8) -/** determine if hardware is external or onboard */ -#define GYROIOCGEXTERNAL _GYROIOC(12) - /** get the current gyro type */ #define GYROIOCTYPE _GYROIOC(13) diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index 0307b53e6c..4fb0f26b83 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -1583,9 +1583,6 @@ MPU6000::gyro_ioctl(struct file *filp, int cmd, unsigned long arg) case GYROIOCSELFTEST: return gyro_self_test(); - case GYROIOCGEXTERNAL: - return _interface->ioctl(cmd, dummy); - default: /* give it to the superclass */ return CDev::ioctl(filp, cmd, arg);