Closedown

This commit is contained in:
x03daop
2016-09-08 14:28:39 +02:00
parent b5bf9bfec9
commit 045833b889

View File

@@ -722,7 +722,7 @@ class ScanGuard(object):
self.devices = []
# False = test mode, do not actually send out commands
self.controls_active = False
# True = beam is okay
# True = beam is okay
self.beam_ok = True
# True while executing the main loop
self.running = False
@@ -850,8 +850,7 @@ class ScanGuard(object):
logging.info("test mode. simulated beam loss in %g seconds.", self.test_time_seconds)
while self.running:
self._ringcurrent.pv.poll() #pend_event(timeout=1)
new_beam_ok = self.check_beam()
self._ringcurrent.pv.poll() #pend_event(timeout=1)
new_beam_ok = self.check_beam()
if new_beam_ok != self.beam_ok: