Merge pull request #508 from stevstrong/patch-16

F1 : Update Wire.cpp to remove BUS_RESET when I2C is enabled
This commit is contained in:
Roger Clark 2018-04-26 08:26:07 +10:00 committed by GitHub
commit 46760bee74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ uint8 TwoWire::process(uint8 stop) {
res = EOTHER;
}
i2c_disable(sel_hard);
i2c_master_enable(sel_hard, (I2C_BUS_RESET | dev_flags));
i2c_master_enable(sel_hard, dev_flags);
}
return res;
}