Skip to content

Added "return true" to begin function. #17

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andyfsimon
Copy link

@andyfsimon andyfsimon commented May 22, 2018

As the "begin" function is reporting to return a bool, I expected that I could use it in a similar fashion:

if (!sensor.begin()) {
    Serial.println("Could not find a valid Si7021 sensor, check wiring!");
}

But as the function returns nothing so far, this fails. Added "return true" in two points of the function where it actually finds a sensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants