Script execution

This commit is contained in:
sfop
2016-08-23 14:16:10 +02:00
parent 6f9415f1f8
commit 16435cfa15

View File

@@ -98,9 +98,11 @@ class CamTool(DeviceBase):
start = time.time()
while(True):
try:
caget(channel)
print "Reading"
print caget(channel)
break
except:
except Exception as e:
print str(e)
if time.time() - start > timeout:
raise Exception("Timeout waiting for channel: " + channel)
time.sleep(0.5)