From 06a7e25789f86526bcd1249678a2fef59ec12003 Mon Sep 17 00:00:00 2001 From: Shawn Tan Date: Fri, 6 Jun 2025 12:33:01 -0700 Subject: [PATCH] Fix duplicate button presses for RTT --- tutorials/hobgoblin-reaction.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorials/hobgoblin-reaction.md b/tutorials/hobgoblin-reaction.md index fed0304e..6ebc4b63 100644 --- a/tutorials/hobgoblin-reaction.md +++ b/tutorials/hobgoblin-reaction.md @@ -115,6 +115,7 @@ for led_on in digital_output_set.index: response_time = button_press - led_on if 0 < response_time < response_window: valid_response_times.append(response_time) + break # Calculate and print hit/miss percentage num_valid_responses = len(valid_response_times)