Skip to content

Commit 0b68c51

Browse files
authored
Merge pull request #135 from caternuson/giga_i2c_patch
Patch for GIGA I2C quirk
2 parents 15fbda5 + 31148fe commit 0b68c51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Adafruit_I2CDevice.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ bool Adafruit_I2CDevice::detected(void) {
7070
#ifdef DEBUG_SERIAL
7171
DEBUG_SERIAL.print(F("Address 0x"));
7272
DEBUG_SERIAL.print(_addr);
73+
#endif
74+
#ifdef ARDUINO_ARCH_MBED
75+
_wire->write(0); // forces a write request instead of a read
7376
#endif
7477
if (_wire->endTransmission() == 0) {
7578
#ifdef DEBUG_SERIAL

0 commit comments

Comments
 (0)