Closed DanRosenfeld closed 5 years ago
Pretty sure the following line in the ReadDistance example
if (distanceSensor.begin() == true)
should read
if (distanceSensor.begin() == false)
since begin() returns 0 on success.
Nice catch @DanRosenfeld I think I'll change it to == 0 so it isn't as confusing
Fixed in v1.1.6, Thanks!
Super--glad to help.
Pretty sure the following line in the ReadDistance example
if (distanceSensor.begin() == true)
should read
if (distanceSensor.begin() == false)
since begin() returns 0 on success.