giga i2c hack fix
This commit is contained in:
parent
15fbda592d
commit
9af8ab9607
|
|
@ -70,6 +70,9 @@ bool Adafruit_I2CDevice::detected(void) {
|
|||
#ifdef DEBUG_SERIAL
|
||||
DEBUG_SERIAL.print(F("Address 0x"));
|
||||
DEBUG_SERIAL.print(_addr);
|
||||
#endif
|
||||
#ifdef ARDUINO_ARCH_MBED
|
||||
_wire->write(0); // forces a write request instead of a read
|
||||
#endif
|
||||
if (_wire->endTransmission() == 0) {
|
||||
#ifdef DEBUG_SERIAL
|
||||
|
|
|
|||
Loading…
Reference in New Issue