From 6eeabaf7f10865aa6be7a8b74d3c18fe4430f81a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Jun 2022 22:01:51 +1000 Subject: [PATCH] AP_Compass: HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE for Pixhawk6C --- libraries/AP_Compass/AP_Compass.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index f746177508..65221aa4dd 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -1145,10 +1145,12 @@ void Compass::_probe_external_i2c_compasses(void) ADD_BACKEND(DRIVER_IST8310, AP_Compass_IST8310::probe(GET_I2C_DEVICE(i, ist8310_addr[a]), true, default_rotation)); } +#ifndef HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE FOREACH_I2C_INTERNAL(i) { ADD_BACKEND(DRIVER_IST8310, AP_Compass_IST8310::probe(GET_I2C_DEVICE(i, ist8310_addr[a]), all_external, default_rotation)); } +#endif } } #endif