pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

Fix reaction-time code

Open martinwork opened this issue 8 months ago • 0 comments

Arising from support ticket https://support.microbit.org/helpdesk/tickets/75716 (private)

If restarted without a result, or after a false start, a press during the countdown may be processed as a success, because running is true from the previous start.

This PR moves initialisation of the control variables before the countdown. image

martinwork avatar Jun 02 '24 14:06 martinwork