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: