Bitshifted the address for STM32I2CDevice

This commit is contained in:
dario 2023-11-04 15:21:58 +01:00
parent 4da1f0bb7d
commit 71170d4cea

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)
{
}