Skip to content

Commit

Permalink
fix(device/getStatus): actually get status
Browse files Browse the repository at this point in the history
  • Loading branch information
m-laniakea committed Mar 21, 2020
1 parent 855ad77 commit 3bc423b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stspin/spin_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ def getStatus(self) -> int:
:returns: 2 bytes status as an int
"""
return self._writeCommand(Command.StatusGet)
self._writeCommand(Command.StatusGet)

return self._writeMultiple([Command.Nop] * 2)

def isBusy(self) -> bool:
"""Checks busy status of the device
Expand Down

0 comments on commit 3bc423b

Please sign in to comment.