# HG changeset patch # User Matt Johnston # Date 1374710610 -28800 # Node ID 435631e6d61253b0c0db50d96de06fd8dac8d407 # Parent bd29ddb360a5968ce76506a3ac062c94a047baaf Ignore temp>80 diff -r bd29ddb360a5 -r 435631e6d612 py/sensor_ds18b20.py --- a/py/sensor_ds18b20.py Thu Jul 25 08:03:14 2013 +0800 +++ b/py/sensor_ds18b20.py Thu Jul 25 08:03:30 2013 +0800 @@ -58,6 +58,9 @@ D("no match") return None temp = int(match.groups(1)[0]) / 1000.0 + if temp > 80: + E("Problem reading sensor '%s': %f" % (s, temp)) + return None return temp except Exception, e: EX("Problem reading sensor '%s': %s" % (s, str(e)))