We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2183d commit 34d15d0Copy full SHA for 34d15d0
cores/arduino/SERCOM.cpp
@@ -605,9 +605,7 @@ bool SERCOM::sendDataMasterWIRE(uint8_t data)
605
while(!sercom->I2CM.INTFLAG.bit.MB) {
606
// If a data transfer error occurs, the MB bit may never be set.
607
// Check the error bit and bail if it's set.
608
- // The data transfer errors that can occur (including BUSERR) are all
609
- // rolled up into INTFLAG.bit.ERROR from STATUS.reg
610
- if (sercom->I2CM.INTFLAG.bit.ERROR) {
+ if (sercom->I2CM.STATUS.bit.BUSERR) {
611
return false;
612
}
613
0 commit comments