mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
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:
commit
5edc9a1f91
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user