FrappyNode.target must be set after stop but before restart

This commit is contained in:
2024-05-29 15:13:13 +02:00
parent 1a82818da4
commit 29343faf8a

View File

@ -790,7 +790,6 @@ class FrappyNode(SecNodeDevice, Moveable):
if cfg is None:
self.log.error('can not restart - previous cfg unknown')
return
self._setROParam('target', cfg)
ins = config.instrument
fm = FrappyManager()
info = fm.get_ins_info(ins)
@ -801,6 +800,7 @@ class FrappyNode(SecNodeDevice, Moveable):
self._disconnect()
session.log.info('stop frappy_%s %r %r', self.service, running_cfg, cfg)
fm.do_stop(ins, self.service)
self._setROParam('target', cfg)
try:
is_cfg = cfg and ':' not in cfg
if is_cfg: