sparkfun / SparkFun_MLX90640_Arduino_Example

Controlling and reading from the MLX90640 IR array thermal imaging sensor
https://www.sparkfun.com/
Other
122 stars 35 forks source link

Fix compile issue for Teensy 3.2 boards. #10

Closed jrddupont closed 5 years ago

jrddupont commented 5 years ago

Firmware did not work with Teensy 3.2 because I2C_BUFFER_LENGTH was never defined. Commenting out the elif for Teensy boards fixes this issue, but I am not sure if a buffer length of 32 is correct.

nseidle commented 5 years ago

Yup. It's a problem. Thanks for the PR but I'll push a slightly different fix. I'd rather define the buffer size under the Teensy gate than have it default.

For now I'm setting it to 32 bytes but with i2c_t3 these buffers could be increased significantly.

New INOs should be pushed shortly.