PaulStoffregen/Wire

Bug in IMXRT I2C requestFrom

ckahlo opened this issue · 0 comments

https://github.com/PaulStoffregen/Wire/blob/master/WireIMXRT.cpp#L236
should be definitely a "return 0". (or in a future version with uint32_t return type a negative value)

The way it is implemented it is impossible to distinguish a timeout condition from a 4 byte data packet.
Resulting in code that used to run on other platforms to break on Teensy 4.

Best regards,
Christian