Skip to content

Added the repeated-start feature in I2C driver #590

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

Merged
merged 7 commits into from
Sep 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update libraries/Wire/src/Wire.cpp
Co-Authored-By: Frederic Pillon <frederic.pillon@st.com>
  • Loading branch information
jmchiappa and fpistm authored Sep 4, 2019
commit b76a180cbd201db011da222dbc9baff2e5fd7db3
2 changes: 1 addition & 1 deletion libraries/Wire/src/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint32_t iaddres

// perform blocking read into buffer
uint8_t read = 0;
if (sendStop != false) {
if (sendStop != 0) {
_i2c.handle.XferOptions = I2C_LAST_FRAME;
} else {
_i2c.handle.XferOptions = I2C_NO_OPTION_FRAME;
Expand Down