-
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
Target: STM i2c_byte_write returns value not consistent with documentation #9447
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-775 |
@ARMmbed/team-st-mcd Please review |
@jorisa
but you're pointing documentation of:
the actual documentation of int write(int data) is:
And I think that STM implementation complies with this defintiion. It will return 1 in case of ACK as documented, or in case the ack is not received it will return 2 to report the timeout. I don't think we have an easy way to differentiate NACK from timeout in the write operation. Let me know if I misunderstood something |
@TacoGrandeTX @0xc0170 I think I addressed the comments. @jorisa hasn't answered back since my answer more than 1 month ago. Could you close it ? |
Description
Then in i2c_byte_write it always returns 1;
ACK should be checked and the result should be returned
Issue request type
The text was updated successfully, but these errors were encountered: