# HG changeset patch # User Matt Johnston # Date 1374710610 -28800 # Node ID 33ed66a7ea0bb6d6476e7977d2128d8b3ddb5da8 # Parent c49d87bb81b9c85246789fe148f4e25d666a02a1 Ignore temp>80 diff -r c49d87bb81b9 -r 33ed66a7ea0b 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)))