Separated updating/writing from saving config

This commit is contained in:
Joel Collins 2019-01-31 13:51:02 +00:00
parent 8087e4d445
commit e9d74c07e6
5 changed files with 27 additions and 21 deletions

View file

@ -52,6 +52,7 @@ class Plugin(MicroscopePlugin):
recalibrate_camera(scamera.camera)
finally:
scamera.camera.resolution=old_resolution
self.
if streaming:
logging.info("Restarting stream after recalibration")
scamera.start_stream_recording()