From fc4aa2194202bb1ff333563a7f86a02c177dfc80 Mon Sep 17 00:00:00 2001 From: sfop Date: Wed, 24 Aug 2016 14:53:00 +0200 Subject: [PATCH] Closedown --- script/camtool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/camtool.py b/script/camtool.py index babbb28..efeb0cb 100644 --- a/script/camtool.py +++ b/script/camtool.py @@ -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: