Closedown

This commit is contained in:
x03daop
2016-09-08 14:35:22 +02:00
parent a06ee1d52d
commit c129a4e666
+2 -2
View File
@@ -722,7 +722,7 @@ class ScanGuard(object):
# False = test mode, do not actually send out commands
self.controls_active = False
# True = beam is okay
self.beam_ok = True
self.beam_ok = False
# True while executing the main loop
self.running = False
# For test and demo, simulate a beam loss after 15 seconds.
@@ -851,7 +851,7 @@ class ScanGuard(object):
while self.running:
self._ringcurrent.pv.poll() #pend_event(timeout=1)
new_beam_ok = self.check_beam()
print new_beam_ok, self.beam_ok:
logging.warning(str(new_beam_ok) + " - " + str(self.beam_ok) + "!")
if new_beam_ok != self.beam_ok:
self.beam_ok = new_beam_ok