From 455c0e25e1dbfa01ea7331ce5b5ab4ccd4b33c30 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Mar 2018 11:45:15 +1100 Subject: [PATCH] AP_InertialSensor: allow for HAL_INS_NONE --- libraries/AP_InertialSensor/AP_InertialSensor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.cpp b/libraries/AP_InertialSensor/AP_InertialSensor.cpp index 2fe140eed4..e3127e8c34 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor.cpp @@ -890,6 +890,8 @@ AP_InertialSensor::detect_backends(void) HAL_INS_DEFAULT_A_ROTATION)); #elif HAL_INS_DEFAULT == HAL_INS_ICM20789_SPI ADD_BACKEND(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device("icm20789"))); +#elif HAL_INS_DEFAULT == HAL_INS_NONE + // no INS device #else #error Unrecognised HAL_INS_TYPE setting #endif