Skip to content

Commit

Permalink
Fix execution of commands in caput.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed Jan 31, 2024
1 parent c492fef commit 0f155a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pysmurf/client/command/smurf_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def _caput(self, pvname, val, atca=False, **kwargs):
if var == None:
raise Exception(f"Invalid node: {pvname}")

var.set(val)
# For the ATCA EPICS interface, a command is called with .set
if not atca and var.isCommand:
var.call(val)
else:
var.set(val)

def _caget(self, pvname, atca=False, **kwargs):
"""Gets variables from epics.
Expand Down

0 comments on commit 0f155a0

Please sign in to comment.