skip wire end() for ESP8266

This commit is contained in:
hathach 2021-11-24 17:55:52 +07:00
parent a2befb15de
commit 6804a451b3
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}