Closedown

This commit is contained in:
sfop
2016-08-24 14:53:00 +02:00
parent fb83e352c6
commit fc4aa21942

View File

@@ -105,7 +105,7 @@ class CamTool(DeviceBase):
break
#except Exception as e:
except:
if time.time() - start > timeout:
if (time.time() - start) > timeout:
raise Exception("Timeout waiting for channel: " + channel)
time.sleep(0.5)
@@ -126,7 +126,7 @@ class CamTool(DeviceBase):
def capture(self):
timestamp = self.timestamp.read()
#print "Current timestamp: ", timestamp
print "Current timestamp: ", timestamp
if not self.latch:
self.cam_run.write(1)
else:
@@ -135,7 +135,7 @@ class CamTool(DeviceBase):
while(True):
val = self.timestamp.read()
if timestamp != val:
#print "New timestamp: ", val
print "New timestamp: ", val
self.setCache(val)
break
#if self.latch: