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