Si7021_Breakout icon indicating copy to clipboard operation
Si7021_Breakout copied to clipboard

Added "return true" to begin function.

Open andyfsimon opened this issue 6 years ago • 0 comments

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.

andyfsimon avatar May 22 '18 11:05 andyfsimon