Merge pull request 'Bitshifted the address for STM32I2CDevice' (#10) from i2c-bitshift into main

Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/sta-core/pulls/10
This commit is contained in:
carlwachter 2023-11-04 18:44:08 +00:00
commit 5edc9a1f91

View File

@ -117,7 +117,8 @@ namespace sta
}
STM32I2CDevice::STM32I2CDevice(STM32I2C * intf, int address, bool master, bool blocking)
: I2CDevice(intf, address, master, blocking)
/* The address is bit-shifted by one to work properly for the STM32 HAL. */
: I2CDevice(intf, address << 1, master, blocking)
{
}