Skip to content

Commit

Permalink
injctrl.ENH: do not update PU reference if standby is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
anacso17 committed Feb 20, 2024
1 parent ba51d1b commit 39cbaa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions siriuspy/siriuspy/injctrl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,11 @@ def _callback_update_pumode(self, **kws):
def _callback_update_pu_refvolt(self, pvname, value, **kws):
if value is None:
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
Expand Down

0 comments on commit 39cbaa2

Please sign in to comment.