Skip to content

Commit

Permalink
Fix interrupting input() (#103)
Browse files Browse the repository at this point in the history
Handle pending KeyboardInterrupt.

Closes #100
  • Loading branch information
microbit-matt-hillsdon authored Apr 5, 2023
1 parent a3e92f7 commit 5e619dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mphalport.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ int mp_hal_stdin_rx_chr(void) {
if (c != -1) {
return c;
}
mp_handle_pending(true);
microbit_hal_idle();
}
}
Expand Down

0 comments on commit 5e619dd

Please sign in to comment.