Skip to content

No support for I2C restart condition at DUE; parameter sendStop in endTransmission not considered #2428

@AmLimit

Description

@AmLimit

With a DUE I try to connect a MMA8452 but get wrong answers. On scope I can see that the parameter "sendStop" in "uint8_t TwoWire::endTransmission(uint8_t sendStop)" has no effect - instead of a restart condition a stop condition followed by a new start condition is perfomed.
A look into source code offers that the parameter "sendStop" is not used. The header comments are ready but the code doesn't reflect the description.
As I understand the MMA845x manual a restart condition is necessary to handle queries, so the MMA8452 is currently not controllable by the wire library.
May be there are additional issues in twi.c to handle that issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions