Skip to content
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

i2c - fix return value description i2c_byte_write() #1694

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Apr 27, 2016

Fixes #1670. This follows the C++ i2c int write(int data) method, plus the implementations for nxp 1768 has it as it is with this correction, thus we can assume that's the intentional behavior. The documentation was added the last year, and was mapping some of the targets (I personally haven't noticed this).

We will add tests to get this right , we will need to fix the implementations.

@sg- @kgills

@sg-
Copy link
Contributor

sg- commented Apr 27, 2016

👍 We should write a test to catch all the non-conforming implementations.

@0xc0170 0xc0170 merged commit 884e1ad into ARMmbed:master Apr 29, 2016
@0xc0170 0xc0170 deleted the fix_#1670 branch April 29, 2016 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I2C byte write return value
2 participants