Script execution

This commit is contained in:
x07maop
2016-03-01 11:10:33 +01:00
parent a0acc7cbd4
commit 54a2810a06
+2 -2
View File
@@ -26,12 +26,12 @@ class Averager(ReadonlyRegisterBase, ReadonlyRegisterArray):
while True:
for i in range (self.getSize()):
self.samples[i].append(self.devices[i].read())
if integration_time is None or (time.time() - start) >= integration_time:
if self.integration_time is None or (time.time() - start) >= self.integration_time:
break
sleep(0.1)
ret = []
for i in range (self.getSize()):
ret.append(getSample[i])
ret.append(getSample(i))
def getSample(self, index):