summaryrefslogtreecommitdiff
path: root/chip/stm32/i2c-stm32g4.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/i2c-stm32g4.c')
-rw-r--r--chip/stm32/i2c-stm32g4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/i2c-stm32g4.c b/chip/stm32/i2c-stm32g4.c
index de6937ab28..f84cb0cccf 100644
--- a/chip/stm32/i2c-stm32g4.c
+++ b/chip/stm32/i2c-stm32g4.c
@@ -264,7 +264,7 @@ int chip_i2c_xfer(const int port, const uint16_t slave_addr_flags,
const uint8_t *out, int out_bytes,
uint8_t *in, int in_bytes, int flags)
{
- int addr_8bit = I2C_GET_ADDR(slave_addr_flags) << 1;
+ int addr_8bit = I2C_STRIP_FLAGS(slave_addr_flags) << 1;
int rv = EC_SUCCESS;
int i;
int xfer_start = flags & I2C_XFER_START;