Skip to content

Commit 56d4b23

Browse files
committed
Fix duplicate button presses for RTT
1 parent 12aa009 commit 56d4b23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tutorials/hobgoblin-reaction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ for led_on in digital_output_set.index:
115115
response_time = button_press - led_on
116116
if 0 < response_time < response_window:
117117
valid_response_times.append(response_time)
118+
break
118119

119120
# Calculate and print hit/miss percentage
120121
num_valid_responses = len(valid_response_times)

0 commit comments

Comments
 (0)