From c41e36ca525ad1385e0ba5c834b3c5455d87940b Mon Sep 17 00:00:00 2001 From: TEParsons Date: Wed, 22 Nov 2023 15:18:29 +0000 Subject: [PATCH] FF: Convert channel to zero-index --- psychopy_bbtk/tpad.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psychopy_bbtk/tpad.py b/psychopy_bbtk/tpad.py index 07073f0..b197141 100644 --- a/psychopy_bbtk/tpad.py +++ b/psychopy_bbtk/tpad.py @@ -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