From 07bd7c2168b27d0141c8785a14288984ee282d77 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 18 Aug 2013 07:45:14 -0600 Subject: [PATCH] STM32 F1 I2C: Fix a typo that crept in with some recent changes. From Yiran Liao --- arch/arm/src/stm32/stm32_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_i2c.c b/arch/arm/src/stm32/stm32_i2c.c index c14f3e30ea..3c5014d6a8 100644 --- a/arch/arm/src/stm32/stm32_i2c.c +++ b/arch/arm/src/stm32/stm32_i2c.c @@ -1355,7 +1355,7 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv) * since ACK is not returned. We should ignore this error. */ - if ((status & I2C_ISR_ERRORMASK) != 0) + if ((status & I2C_SR1_ERRORMASK) != 0) { stm32_i2c_traceevent(priv, I2CEVENT_ERROR, 0);