# HG changeset patch # User Matt Johnston # Date 1561560723 -28800 # Node ID 97d99eb42d27afd4e6093a085c6d19e241696f85 # Parent 9e2181e3ce6d060066d14393b4002ec5cca0aac8 temp == 0 is a problem diff -r 9e2181e3ce6d -r 97d99eb42d27 py/sensor_ds18b20.py --- a/py/sensor_ds18b20.py Fri Feb 17 21:22:59 2017 +0800 +++ b/py/sensor_ds18b20.py Wed Jun 26 22:52:03 2019 +0800 @@ -62,7 +62,7 @@ D("no match") return None temp = int(match.groups(1)[0]) / 1000.0 - if temp > 80: + if temp > 80 or temp == 0: E("Problem reading sensor '%s': %f" % (s, temp)) return None return temp