AP_Baro: define GET_I2C_DEVICE()

This commit is contained in:
Andrew Tridgell 2019-09-02 08:13:37 +10:00
parent 15e15e0b9d
commit 2509b50852
1 changed files with 2 additions and 0 deletions

View File

@ -473,6 +473,8 @@ void AP_Baro::init(void)
}
#endif
#define GET_I2C_DEVICE(bus, address) hal.i2c_mgr->get_device(bus, address)
#if defined(HAL_BARO_PROBE_LIST)
// probe list from BARO lines in hwdef.dat
HAL_BARO_PROBE_LIST;