add ESP32 large buffer support (doesnt fix bno085 but worth a short)

cc @caternuson
This commit is contained in:
lady ada 2022-06-25 21:12:11 -04:00
parent 515f63f49c
commit 1cb88a65b7
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ Adafruit_I2CDevice::Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire) {
_begun = false; _begun = false;
#ifdef ARDUINO_ARCH_SAMD #ifdef ARDUINO_ARCH_SAMD
_maxBufferSize = 250; // as defined in Wire.h's RingBuffer _maxBufferSize = 250; // as defined in Wire.h's RingBuffer
#elif defined(ESP32)
_maxBufferSize = I2C_BUFFER_LENGTH;
#else #else
_maxBufferSize = 32; _maxBufferSize = 32;
#endif #endif