-
Notifications
You must be signed in to change notification settings - Fork 935
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to get i2c abort reason
Currently we're returning PICO_ERROR_GENERIC for an i2c abort such as "No ack". Add a new PICO_ERROR_ABORT and use this if PICO_I2C_RETURN_ABORT_REASON is true. The abort reason comes from tx_abrt_source (I2C_IC_TX_ABRT_SOURCE_ABRT_*_BITS) so take the zero count from PICO_ERROR_ABORT, so the reason can be determined from the return code. Fixes #1049
- Loading branch information
1 parent
f642b76
commit 4ac16d6
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters