diff py/sensor_ds18b20.py @ 299:358c50004679

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 27 Feb 2017 23:20:07 +0800
parents 20c89630be6c
children 97d99eb42d27
line wrap: on
line diff
--- a/py/sensor_ds18b20.py	Mon Feb 20 23:23:57 2017 +0800
+++ b/py/sensor_ds18b20.py	Mon Feb 27 23:20:07 2017 +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):