From 2509b508522e05acfc7c2a167936af6b850bb8f4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 2 Sep 2019 08:13:37 +1000 Subject: [PATCH] AP_Baro: define GET_I2C_DEVICE() --- libraries/AP_Baro/AP_Baro.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index 71186982b4..47608fcffb 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -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;