Skip to content

Commit

Permalink
ENH: Improved logging for TPad messages
Browse files Browse the repository at this point in the history
  • Loading branch information
todd committed Sep 4, 2024
1 parent 4cd3b77 commit 8ff3f5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion psychopy_bbtk/tpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def __init__(self, *args, **kwargs):


class TPad(sd.SerialDevice):
name = "TPad"

def __init__(
self, port=None, baudrate=115200,
byteSize=8, stopBits=1,
Expand Down Expand Up @@ -472,7 +474,7 @@ def dispatchMessages(self):
message = node.parseMessage(parts)
node.receiveMessage(message)
else:
logging.debug(f"Received unparsable message from TPad: {line}")
logging.debug(f"Received unparsable message from TPad: {repr(line)}")
# mark that a dispatch has finished
self._dispatchInProgress = False

Expand Down

0 comments on commit 8ff3f5b

Please sign in to comment.