From 15e15e0b9d42c4b5acc58373b20e39dc84bae2fe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Sep 2019 08:13:27 +1000 Subject: [PATCH] AP_InertialSensor: define GET_I2C_DEVICE() --- libraries/AP_InertialSensor/AP_InertialSensor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.cpp b/libraries/AP_InertialSensor/AP_InertialSensor.cpp index b8443763f5..099c031950 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor.cpp @@ -708,7 +708,10 @@ AP_InertialSensor::detect_backends(void) } \ probe_count++; \ } while (0) - + +// macro for use by HAL_INS_PROBE_LIST +#define GET_I2C_DEVICE(bus, address) hal.i2c_mgr->get_device(bus, address) + if (_hil_mode) { ADD_BACKEND(AP_InertialSensor_HIL::detect(*this)); return;