AP_Compass: fixed the IST8308 on CubeBlack
CubeBlack needs to probe both internal and external buses
This commit is contained in:
parent
21e95a62d5
commit
9cc883a8c0
@ -1141,6 +1141,10 @@ void Compass::_probe_external_i2c_compasses(void)
|
||||
ADD_BACKEND(DRIVER_IST8308, AP_Compass_IST8308::probe(GET_I2C_DEVICE(i, HAL_COMPASS_IST8308_I2C_ADDR),
|
||||
true, ROTATION_NONE));
|
||||
}
|
||||
FOREACH_I2C_INTERNAL(i) {
|
||||
ADD_BACKEND(DRIVER_IST8308, AP_Compass_IST8308::probe(GET_I2C_DEVICE(i, HAL_COMPASS_IST8308_I2C_ADDR),
|
||||
all_external, ROTATION_NONE));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HAL_DISABLE_I2C_MAGS_BY_DEFAULT) || defined(HAL_USE_I2C_MAG_RM3100)
|
||||
|
Loading…
Reference in New Issue
Block a user