Skip to content

Commit

Permalink
ENH: Report firmware version after connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd OST committed Aug 29, 2024
1 parent dad6398 commit 5456577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psychopy_bbtk/tpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,10 @@ def unlockMode(self):

def isAwake(self):
self.setMode(0)
# call help and get response
# call FIRM (firmware version) and get response
self.sendMessage("FIRM")
resp = self.awaitResponse(multiline=True)
logging.debug(f"Connected to TPad device, which reports its firmware version as: {resp}")

return bool(resp)

Expand Down

0 comments on commit 5456577

Please sign in to comment.