Script execution
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user