Skip to content

Commit 8b672fe

Browse files
comment
1 parent 79a89cf commit 8b672fe

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

examples/i2c_scanner_strict/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ int main()
3131
for (int address = 0x03; address <= 0x77; ++address)
3232
{
3333
Wire.beginTransmission(address);
34-
Wire.write(dummy);
35-
36-
// Suppress the I/O error spam from strict scanning
34+
Wire.write(dummy); // force a real write; prevents AVR ACK storms
3735
uint8_t error = Wire.endTransmission();
3836

3937
if (error == 0)
@@ -43,4 +41,4 @@ int main()
4341
}
4442

4543
return 0;
46-
}
44+
}

0 commit comments

Comments
 (0)