more specific debug during scan
This commit is contained in:
parent
3ea940b745
commit
fbba4799ad
|
|
@ -67,6 +67,10 @@ bool Adafruit_I2CDevice::detected(void) {
|
|||
|
||||
// A basic scanner, see if it ACK's
|
||||
_wire->beginTransmission(_addr);
|
||||
#ifdef DEBUG_SERIAL
|
||||
DEBUG_SERIAL.print(F("Address 0x"));
|
||||
DEBUG_SERIAL.print(_addr);
|
||||
#endif
|
||||
if (_wire->endTransmission() == 0) {
|
||||
#ifdef DEBUG_SERIAL
|
||||
DEBUG_SERIAL.println(F(" Detected"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue