comparison py/sensor_ds18b20.py @ 465:a40f30fad8f6

Merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Jan 2013 07:25:52 +0800
parents c34083c078db
children 33ed66a7ea0b
comparison
equal deleted inserted replaced
464:c3926e7cfb0c 465:a40f30fad8f6
73 73
74 def sensor_names(self): 74 def sensor_names(self):
75 """ Returns a sequence of sensorname """ 75 """ Returns a sequence of sensorname """
76 slaves_path = os.path.join(self.master_dir, "w1_master_slaves") 76 slaves_path = os.path.join(self.master_dir, "w1_master_slaves")
77 names = open(slaves_path, 'r').read().split() 77 names = open(slaves_path, 'r').read().split()
78 D("returning names %s" % names)
79 return names 78 return names
80 79
81 def wort_name(self): 80 def wort_name(self):
82 return config.WORT_NAME 81 return config.WORT_NAME
83 82