diff py/sensor_ds18b20.py @ 266:20c89630be6c

emergency change sensor config add --nowait. make only look for 28- devices (ds18b20)
author Matt Johnston <matt@ucc.asn.au>
date Sun, 05 Jul 2015 00:44:05 +0800
parents 26eee8591f61
children 97d99eb42d27
line wrap: on
line diff
--- a/py/sensor_ds18b20.py	Sat Jun 13 22:49:14 2015 +0800
+++ b/py/sensor_ds18b20.py	Sun Jul 05 00:44:05 2015 +0800
@@ -88,6 +88,8 @@
             E("No W1 sensors found")
             return []
         names = contents.split()
+        # only ds18b20
+        names = [n for n in names if n.startswith('28-')]
         return names
 
     def wort_name(self):