pxt-microbit
pxt-microbit copied to clipboard
Fix reaction-time code
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.