Skip to content

Commit

Permalink
spin_device/writeCommand: Fix assert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
m-laniakea committed Mar 21, 2020
1 parent b3c288c commit 0f3afc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stspin/spin_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _writeCommand(
:return: Response bytes as int
"""
# payload and payload_size must be either both present, or both absent
assert((payload is None) != (payload_size is None))
assert((payload is None) == (payload_size is None))

response = self._write(command)

Expand Down

0 comments on commit 0f3afc4

Please sign in to comment.