Skip to content

Commit

Permalink
injctrl.MNT: change check order to avoid several logs
Browse files Browse the repository at this point in the history
  • Loading branch information
anacso17 committed Feb 26, 2024
1 parent 4077263 commit 037aa54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions siriuspy/siriuspy/injctrl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,13 +1125,13 @@ def _callback_update_pumode(self, **kws):
def _callback_update_pu_refvolt(self, pvname, value, **kws):
if value is None:
return
if self._aspu_standby_state == _Const.StandbyInject.Standby:
return
# do not update PU reference voltage if standby is enabled
if self._topup_pustandbyenbl == _Const.DsblEnbl.Enbl:
self._update_log(f'WARN:PU Standby is enabled, ignoring')
self._update_log(f'WARN:setpoint to {pvname}')
return
if self._aspu_standby_state == _Const.StandbyInject.Standby:
return
devname = _PVName(pvname).device_name
index = self._pu_names.index(devname)
self._pu_refvolt[index] = value
Expand Down

0 comments on commit 037aa54

Please sign in to comment.