We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79a89cf commit 8b672feCopy full SHA for 8b672fe
1 file changed
examples/i2c_scanner_strict/main.cpp
@@ -31,9 +31,7 @@ int main()
31
for (int address = 0x03; address <= 0x77; ++address)
32
{
33
Wire.beginTransmission(address);
34
- Wire.write(dummy);
35
-
36
- // Suppress the I/O error spam from strict scanning
+ Wire.write(dummy); // force a real write; prevents AVR ACK storms
37
uint8_t error = Wire.endTransmission();
38
39
if (error == 0)
@@ -43,4 +41,4 @@ int main()
43
41
}
44
42
45
return 0;
46
-}
+}
0 commit comments