-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent implementation of I2C::write #2725
Comments
ARM Internal Ref: IOTMORF-477 |
Thanks @matthewelse for reporting. I made first corrections in the doc to map what is should be :
The further would be to align write() methods (one does 0,1,2 statuses, the other one bytes written or failures (negative values). As this issue states, we should focus on targets and fix them. I'll send PR with this patch, tag there maintainers for review, we can write test to see which ones fail and start patching. |
Description
Currently, the I2C class is implemented such that I2C::write returns different values to indicate ACK in different overloads. This seems counter-intuitive and should probably be made consistent. In #1670, the documentation was corrected to reflect the documentation, however nothing was done about the implementation.
cc: @0xc0170
The text was updated successfully, but these errors were encountered: