forked from Archive/PX4-Autopilot
Re-enable the I2C lock around ACK sending pending a possible upstream fix.
This commit is contained in:
parent
01e52526cf
commit
4cbc1c8d86
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue