AP_Compass: HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE for Pixhawk6C

This commit is contained in:
Andrew Tridgell 2022-06-21 22:01:51 +10:00
parent e48f405c08
commit 4d031a0c9e

View File

@ -1172,10 +1172,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