Wire now seems to require method begin() to be called before beginTransmission(). This patch accomodates such new requirement by executing _i2cPort->begin(); if Wire is used.
Tested on Lolin32, and can confirm it works now with the fix. Not sure if this change should be specifically applied for ESP32, or can be generalized to non-TEENSY3_I2C implementations.
Wire
now seems to require methodbegin()
to be called beforebeginTransmission()
. This patch accomodates such new requirement by executing_i2cPort->begin();
ifWire
is used.Tested on Lolin32, and can confirm it works now with the fix. Not sure if this change should be specifically applied for ESP32, or can be generalized to non-TEENSY3_I2C implementations.
Error message
Related links
https://community.platformio.org/t/updating-espressif-32-to-5-2-0-breaks-wire-cpp/30282/2 https://github.com/espressif/arduino-esp32/commit/9bceb280e3a53492278dddf08fadcf540549dcdf https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire/src/Wire.cpp#L278-L308