wrong define used to clear I2C ADDR flag

This commit is contained in:
Maerdl 2021-03-05 07:57:38 +01:00 committed by ASELSTM
parent f5aaa9b454
commit 0813c2c1a3
1 changed files with 1 additions and 1 deletions

View File

@ -6059,7 +6059,7 @@ static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags)
else else
{ {
/* Clear ADDR flag */ /* Clear ADDR flag */
__HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ADDR); __HAL_I2C_CLEAR_ADDRFLAG(hi2c);
/* Process Unlocked */ /* Process Unlocked */
__HAL_UNLOCK(hi2c); __HAL_UNLOCK(hi2c);