HAL_ChibiOS: account for I2C base in compass masks

This commit is contained in:
Andrew Tridgell 2018-07-18 11:41:08 +10:00
parent 2f01f08b24
commit 59aab9987e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/*