Skip to content

Commit

Permalink
Check if error returned for macroIcAddresses
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesOHeaDLS committed Nov 27, 2024
1 parent 664b745 commit b60a067
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dls_pmaclib/dls_pmacremote.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ def _getNumberOfMacroStationAxes(self):
f"($0 means not present)"
)
controllableAxesCount = 0
# Check if an error is returned instead of 4 element array
if len(macroIcAddresses) != 4:
return controllableAxesCount
for i in range(4):
if macroIcAddresses[i] != "$0":
controllableAxesCount += 8
Expand Down

0 comments on commit b60a067

Please sign in to comment.