Re-enable the I2C lock around ACK sending pending a possible upstream fix.

This commit is contained in:
px4dev 2012-09-16 17:11:58 -07:00
parent 01e52526cf
commit 4cbc1c8d86
1 changed files with 2 additions and 2 deletions

View File

@ -1199,7 +1199,7 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv)
stm32_i2c_traceevent(priv, I2CEVENT_RCVBYTE, priv->dcnt);
#ifdef CONFIG_I2C_POLLED
//irqstate_t state = irqsave();
irqstate_t state = irqsave();
#endif
/* Receive a byte */
@ -1215,7 +1215,7 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv)
priv->dcnt--;
#ifdef CONFIG_I2C_POLLED
//irqrestore(state);
irqrestore(state);
#endif
}