STM32 F1 I2C: Fix a typo that crept in with some recent changes. From Yiran Liao

This commit is contained in:
Gregory Nutt 2013-08-18 07:45:14 -06:00
parent e2f68ac85f
commit dc07d65e14
2 changed files with 4 additions and 1 deletions

View File

@ -5414,4 +5414,7 @@
* arch/arm/src/sama5/sam_ohci.c: More to be tested, but the SAMA5
OHCI driver is now basically funtional (2013-8-16).
* include/nuttx/usb/ehci.h: EHCI header file (2013-8-17).
* arch/arm/src/stm32/stm32_i2c.c: Correct an error that crept into
the STM32 F1 I2C driver with some recent changes. From Yiran Liao
(2013-8-18).

View File

@ -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);