Mercurial > templog
diff py/sensor_ds18b20.py @ 155:d03157c7ad60
rough touch sensor
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 21 Dec 2012 23:30:16 +0800 |
parents | e114b38c8a55 |
children | 256505f98c4d |
line wrap: on
line diff
--- a/py/sensor_ds18b20.py Thu Dec 20 22:26:33 2012 +0800 +++ b/py/sensor_ds18b20.py Fri Dec 21 23:30:16 2012 +0800 @@ -47,7 +47,6 @@ def do_sensor(self, s, contents = None): """ contents can be set by the caller for testing """ - D("dosensor %s" % s) try: if contents is None: fn = os.path.join(self.master_dir, s, 'w1_slave') @@ -59,7 +58,6 @@ D("no match") return None temp = int(match.groups(1)[0]) / 1000.0 - D("returning %f" % temp) return temp except Exception, e: EX("Problem reading sensor '%s': %s" % (s, str(e)))