Closedown

This commit is contained in:
x03daop
2016-11-04 16:09:21 +01:00
parent 0a92d24608
commit 2e82ae5cf5
+10 -12
View File
@@ -14,20 +14,18 @@ if controller.state == State.Ready and Scienta.state.isInitialized():
for i in range(retries):
try:
Scienta.getImageCounter().read()
print "Communication ok"
if globals().has_key("scientaTimeOut"):
if scientaTimeOut:
_scientaRestart = True
scientaTimeOut = False
break
except:
print "Com failure: retrying"
pass
if i < retries-1:
#Communication ok
print "Communication ok"
if globals().has_key("scientaTimeOut"):
if scientaTimeOut:
_scientaRestart = True
scientaTimeOut = False
else:
print "Scienta timeout"
scientaTimeOut = True
if i < retries-1:
print "Com failure: retrying"
else
print "Scienta timeout"
scientaTimeOut = True
if _scientaRestart:
print "Restarting Scienta..."