|Minor Problem with the libraries/Wire/Wire.cpp|
|Writer : mw46d||DATE : January 11, 2014 | Hit : 2,072|
I found a little problem with the IDE Wire library. When uint8 TwoWire::requestFrom() is used to request just one byte, the counter was not incremented correctly.
After the while loop, the last byte should be handled like
- *(rx_buf + rx_buf_len) = i2c_shift_in(port);
I found that while playing the the Pololu MinIMU-9. I plan to write a little bit longer post about that adventure soon;-)