Closedown

This commit is contained in:
sfop
2016-08-31 15:28:56 +02:00
parent 0e08145a54
commit 1206357b32

View File

@@ -133,20 +133,16 @@ class CamTool(DeviceBase):
while(True):
try:
timestamp = self.timestamp.read()
print "Current timestamp: ", timestamp
#print "Current timestamp: ", timestamp
if not self.latch:
self.cam_run.write(1)
else:
self.cam_latch.write(1)
print "Latched"
start = time.time()
print "!",
while(True):
print "*",
val = self.timestamp.read()
print ".",
if timestamp != val:
print "New timestamp: ", val
#print "New timestamp: ", val
self.setCache(val)
return
if (time.time()-start) > self.grab_timeout: