This commit is contained in:
hathach 2021-11-26 12:44:53 +07:00
parent 8b26deb581
commit 389f4cd417
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ void Adafruit_I2CDevice::end(void) {
// Not all port implement Wire::end(), such as
// - ESP8266
// - AVR core without WIRE_HAS_END
#if ! ( defined(ESP8266) || (defined(ARDUINO_ARCH_AVR) && !defined(WIRE_HAS_END)) )
#if !(defined(ESP8266) || (defined(ARDUINO_ARCH_AVR) && !defined(WIRE_HAS_END)))
_wire->end();
_begun = false;
#endif