From eb582ac0cc9016ec5daa9b13575e71a08f9e12ec Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Nov 2019 22:18:48 +1100 Subject: [PATCH] AP_InertialSensor: avoid SITL build on non-SITL --- libraries/AP_InertialSensor/AP_InertialSensor_SITL.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor_SITL.h b/libraries/AP_InertialSensor/AP_InertialSensor_SITL.h index be6d2a38b6..802bb16931 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor_SITL.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor_SITL.h @@ -2,6 +2,7 @@ #include +#if CONFIG_HAL_BOARD == HAL_BOARD_SITL #include "AP_InertialSensor.h" #include "AP_InertialSensor_Backend.h" @@ -36,3 +37,4 @@ private: uint64_t next_gyro_sample[INS_SITL_INSTANCES]; uint64_t next_accel_sample[INS_SITL_INSTANCES]; }; +#endif // CONFIG_HAL_BOARD