diff --git a/src/drivers/drv_sensor.h b/src/drivers/drv_sensor.h index 22ddfcfc8e..a1d2a5ad1a 100644 --- a/src/drivers/drv_sensor.h +++ b/src/drivers/drv_sensor.h @@ -147,9 +147,4 @@ */ #define SENSORIOCRESET _SENSORIOC(4) -/** - * Test the sensor calibration - */ -#define SENSORIOCCALTEST _SENSORIOC(7) - #endif /* _DRV_SENSOR_H */ diff --git a/src/modules/commander/PreflightCheck.cpp b/src/modules/commander/PreflightCheck.cpp index 3e6dfd0711..720fce166b 100644 --- a/src/modules/commander/PreflightCheck.cpp +++ b/src/modules/commander/PreflightCheck.cpp @@ -80,12 +80,7 @@ namespace Preflight static int check_calibration(DevHandle &h, const char *param_template, int &devid) { - bool calibration_found; - - /* new style: ask device for calibration state */ - int ret = h.ioctl(SENSORIOCCALTEST, 0); - - calibration_found = (ret == OK); + bool calibration_found = false; devid = h.ioctl(DEVIOCGDEVICEID, 0);