Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2917083

Browse files
authored
Merge pull request#378 from kaysievers/master
Sercom: partially revert error handling change
2 parents9d2183d +34d15d0 commit2917083

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎cores/arduino/SERCOM.cpp‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,7 @@ bool SERCOM::sendDataMasterWIRE(uint8_t data)
605605
while(!sercom->I2CM.INTFLAG.bit.MB) {
606606
// If a data transfer error occurs, the MB bit may never be set.
607607
// 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) {
608+
if (sercom->I2CM.STATUS.bit.BUSERR) {
611609
returnfalse;
612610
}
613611
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp