skip wire end() for ESP8266
This commit is contained in:
parent
a2befb15de
commit
6804a451b3
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue