Update i2c.c
fix for unrecognized devices having ID 0x7..
This commit is contained in:
parent
e37e0bdc87
commit
ad0090bc1b
|
@ -324,7 +324,7 @@ void _i2c_irq_handler(i2c_dev *dev) {
|
|||
/*
|
||||
* EV6: Slave address sent
|
||||
*/
|
||||
if (sr1 & I2C_SR1_ADDR) {
|
||||
if (sr1 & (I2C_SR1_ADDR|I2C_SR1_ADD10)) {
|
||||
/*
|
||||
* Special case event EV6_1 for master receiver.
|
||||
* Generate NACK and restart/stop condition after ADDR
|
||||
|
|
Loading…
Reference in New Issue