mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
Bitshifted the address for STM32I2CDevice
This commit is contained in:
parent
4da1f0bb7d
commit
71170d4cea
@ -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