Skip to content

There should be no Wire.endTransmission after Wire.requestFrom #2

@Koepel

Description

@Koepel

In the file SparkFunTMP102.cpp, in the function readRegister is a Wire.endTransmission after the Wire.requestFrom. That Wire.endTransmission can be removed, it is only used when writing data.

The Wire.requestFrom does a complete I2C transaction on its own. When Wire.requestFrom returns, the I2C transaction has completely finished and the received data is in a buffer in the Wire library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions