Skip to content

Commit

Permalink
BF: We no longer need to send a redundant message after X to clear th…
Browse files Browse the repository at this point in the history
…e buffer
  • Loading branch information
todd committed Jul 18, 2024
1 parent 5add9e1 commit 421dd64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions psychopy_bbtk/tpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,6 @@ def setMode(self, mode):
self._mode = mode
# exit out of whatever mode we're in (effectively set it to 0)
self.com.write(b"X")
# send an eol to make sure that X isn't stuck in the buffer
self.sendMessage("")
self.awaitResponse()
if mode > 0:
# set mode
Expand Down

0 comments on commit 421dd64

Please sign in to comment.