Skip to content

Commit 5e619dd

Browse files
Fix interrupting input() (#103)
Handle pending KeyboardInterrupt. Closes #100
1 parent a3e92f7 commit 5e619dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mphalport.c

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ int mp_hal_stdin_rx_chr(void) {
2525
if (c != -1) {
2626
return c;
2727
}
28+
mp_handle_pending(true);
2829
microbit_hal_idle();
2930
}
3031
}

0 commit comments

Comments
 (0)