Skip to content

Commit

Permalink
FF: Convert channel to zero-index
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Nov 22, 2023
1 parent 4e78268 commit c41e36c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psychopy_bbtk/tpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def parseMessage(self, message):
state = True
elif state == "R":
state = False
# convert channel to zero-indexed int
channel = int(channel) - 1

resp = button.ButtonResponse(
t=time, channel=channel, value=state
Expand Down

0 comments on commit c41e36c

Please sign in to comment.