diff --git a/Adafruit_I2CDevice.cpp b/Adafruit_I2CDevice.cpp index 0e761be..ca36f21 100644 --- a/Adafruit_I2CDevice.cpp +++ b/Adafruit_I2CDevice.cpp @@ -35,9 +35,12 @@ bool Adafruit_I2CDevice::begin(bool addr_detect) { return true; } -void Adafruit_I2CDevice::end(void) -{ +void Adafruit_I2CDevice::end(void) { +#ifndef ESP8266 + // ESP8266 does not implement Wire::end() _wire->end(); +#endif + _begun = false; }