mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_InertialSensor: define GET_I2C_DEVICE()
This commit is contained in:
parent
beca17c638
commit
15e15e0b9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user