Skip to content

Wire.available() called for no reason. #3

@Koepel

Description

@Koepel

In the file "DS1631/DS1631.cpp", in the function "readTemperature()" there is twice a call to Wire.available(), but the return value is not used. Those can be removed.

The Wire.available() returns the number of bytes that are in the buffer inside the Wire library. It does not wait for something, it does not set things right, it does not do something on the I2C bus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions