giga i2c hack fix

This commit is contained in:
caternuson 2024-10-24 14:25:57 -07:00
parent 15fbda592d
commit 9af8ab9607
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ bool Adafruit_I2CDevice::detected(void) {
#ifdef DEBUG_SERIAL #ifdef DEBUG_SERIAL
DEBUG_SERIAL.print(F("Address 0x")); DEBUG_SERIAL.print(F("Address 0x"));
DEBUG_SERIAL.print(_addr); DEBUG_SERIAL.print(_addr);
#endif
#ifdef ARDUINO_ARCH_MBED
_wire->write(0); // forces a write request instead of a read
#endif #endif
if (_wire->endTransmission() == 0) { if (_wire->endTransmission() == 0) {
#ifdef DEBUG_SERIAL #ifdef DEBUG_SERIAL