Skip to content

Commit 9af8ab9

Browse files
committed
giga i2c hack fix
1 parent 15fbda5 commit 9af8ab9

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)