You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think the private status function works as you expect. It returns a uint8_t which is never < 0. Thus the tests in readPressure() and readTemperature() are never true, i.e.,
if (status(0x1) < 0)
return 1.23;
If you assign -1 to a uint8_t I think it interprets this as 255. You need to change the status return type to an int.
The text was updated successfully, but these errors were encountered:
I don't think the private status function works as you expect. It returns a uint8_t which is never < 0. Thus the tests in readPressure() and readTemperature() are never true, i.e.,
If you assign -1 to a uint8_t I think it interprets this as 255. You need to change the status return type to an int.
The text was updated successfully, but these errors were encountered: