From 0813c2c1a362ef70f561aa83f282eaddc11879b9 Mon Sep 17 00:00:00 2001 From: Maerdl Date: Fri, 5 Mar 2021 07:57:38 +0100 Subject: [PATCH] wrong define used to clear I2C ADDR flag --- Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c b/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c index 305e94c..cb66223 100644 --- a/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c +++ b/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c @@ -6059,7 +6059,7 @@ static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags) else { /* Clear ADDR flag */ - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); /* Process Unlocked */ __HAL_UNLOCK(hi2c);