Update i2c.c

fix for unrecognized devices having ID 0x7..
This commit is contained in:
stevstrong 2018-03-15 19:23:49 +01:00 committed by GitHub
parent e37e0bdc87
commit ad0090bc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ void _i2c_irq_handler(i2c_dev *dev) {
/* /*
* EV6: Slave address sent * 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. * Special case event EV6_1 for master receiver.
* Generate NACK and restart/stop condition after ADDR * Generate NACK and restart/stop condition after ADDR