From 02aebfcd6feb3753a5bcba1e0b35620efece61c8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Apr 2020 11:18:59 +1000 Subject: [PATCH] AP_Baro: fixed build warning --- libraries/AP_Baro/examples/ICM20789/ICM20789.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Baro/examples/ICM20789/ICM20789.cpp b/libraries/AP_Baro/examples/ICM20789/ICM20789.cpp index 38065feee8..1e12f9714d 100644 --- a/libraries/AP_Baro/examples/ICM20789/ICM20789.cpp +++ b/libraries/AP_Baro/examples/ICM20789/ICM20789.cpp @@ -184,6 +184,7 @@ static void spi_init() } #endif +#ifdef HAL_INS_MPU60x0_NAME /* send a 16 bit command to the baro */ @@ -193,7 +194,6 @@ static bool send_cmd16(uint16_t cmd) return i2c_dev->transfer(cmd_b, 2, nullptr, 0); } -#ifdef HAL_INS_MPU60x0_NAME /* read baro calibration data */