Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scansync/meg.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,14 @@ def wait_for_button_press(self, allowed=None, timeout=None):

# Check whether a timeout occurred.
if timeout is not None:
timed_out = t1 - t0 < timeout
timed_out = t1 - t0 > timeout

# Stop the task.
task.stop()

return button, t1

RT = t1 - t0

return button, RT


def _wait_for_button_up(self, buttons=None):
Expand Down