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 b33de2b618
commit 07bd7c2168

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. * 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); stm32_i2c_traceevent(priv, I2CEVENT_ERROR, 0);