mirror of https://github.com/ArduPilot/ardupilot
AP_Compass: HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE for Pixhawk6C
This commit is contained in:
parent
64a232e912
commit
6eeabaf7f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue