temporarily skip end() for esp32 arch

This commit is contained in:
hathach 2021-11-26 13:28:12 +07:00
parent 389f4cd417
commit 44618da5a6
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,11 @@ void Adafruit_I2CDevice::end(void) {
// Not all port implement Wire::end(), such as // Not all port implement Wire::end(), such as
// - ESP8266 // - ESP8266
// - AVR core without WIRE_HAS_END // - AVR core without WIRE_HAS_END
#if !(defined(ESP8266) || (defined(ARDUINO_ARCH_AVR) && !defined(WIRE_HAS_END))) // - ESP32: end() is implemented since 2.0.1 which is latest at the moment.
// Temporarily disable for now to give time for user to update.
#if !(defined(ESP8266) || \
(defined(ARDUINO_ARCH_AVR) && !defined(WIRE_HAS_END)) || \
defined(ARDUINO_ARCH_ESP32))
_wire->end(); _wire->end();
_begun = false; _begun = false;
#endif #endif