mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: account for I2C base in compass masks
This commit is contained in:
parent
2f01f08b24
commit
59aab9987e
|
@ -331,7 +331,7 @@ I2CDeviceManager::get_device(uint8_t bus, uint8_t address,
|
|||
*/
|
||||
uint32_t I2CDeviceManager::get_bus_mask(void) const
|
||||
{
|
||||
return (1U << ARRAY_SIZE_SIMPLE(I2CD)) - 1;
|
||||
return ((1U << ARRAY_SIZE_SIMPLE(I2CD)) - 1) << HAL_I2C_BUS_BASE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue