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 3ea940b commit fbba479Copy full SHA for fbba479
Adafruit_I2CDevice.cpp
@@ -67,14 +67,18 @@ bool Adafruit_I2CDevice::detected(void) {
67
68
// A basic scanner, see if it ACK's
69
_wire->beginTransmission(_addr);
70
+#ifdef DEBUG_SERIAL
71
+ DEBUG_SERIAL.print(F("Address 0x"));
72
+ DEBUG_SERIAL.print(_addr);
73
+#endif
74
if (_wire->endTransmission() == 0) {
75
#ifdef DEBUG_SERIAL
- DEBUG_SERIAL.println(F("Detected"));
76
+ DEBUG_SERIAL.println(F(" Detected"));
77
#endif
78
return true;
79
}
80
- DEBUG_SERIAL.println(F("Not detected"));
81
+ DEBUG_SERIAL.println(F(" Not detected"));
82
83
return false;
84
0 commit comments