Mercurial > templog
diff py/sensor_ds18b20.py @ 301:47c259458160
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 06 Jul 2019 19:17:21 +0800 |
parents | 97d99eb42d27 |
children |
line wrap: on
line diff
--- a/py/sensor_ds18b20.py Mon Feb 27 23:27:45 2017 +0800 +++ b/py/sensor_ds18b20.py Sat Jul 06 19:17:21 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