sparkfun/SparkFun_MAX3010x_Sensor_Library

I2C_BUFFER_LENGTH value differs with Wire.h

pabloandresm opened this issue · 0 comments

In case if ESP32, for example, the I2C_BUFFER_LENGTH is 128, and in that case you set it to 32 in this line:

#define I2C_BUFFER_LENGTH 32

Maybe you should consider, instead of #else ==>"#define I2C_BUFFER_LENGTH 32"
doing something like
#else
#ifndef I2C_BUFFER_LENGTH
#define I2C_BUFFER_LENGTH 32
#endif
#endif

so in the example of ESP32, where I2C_BUFFER_LENGTH is alreade defined to 128, will not interfere