aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-08-27 11:42:31 -0700
committerScott Shawcroft <scott@tannewt.org>2020-08-27 11:42:31 -0700
commit767ca5c3dc80206be1c80d9a07cb18264d3ce961 (patch)
tree8af3e239fce9d778edcd1c986af700d1a3e53337 /lib
parent46dc133d04bb6c38faea820576978827edd4337d (diff)
parent24fb08dbd9a16e83aded3f0874bc96fcd0462fea (diff)
Merge remote-tracking branch 'adafruit/main' into native_wifi
Diffstat (limited to 'lib')
-rwxr-xr-xlib/utils/pyexec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c
index 8e99bc209..378fb6267 100755
--- a/lib/utils/pyexec.c
+++ b/lib/utils/pyexec.c
@@ -113,6 +113,8 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
start = mp_hal_ticks_ms();
mp_call_function_0(module_fun);
mp_hal_set_interrupt_char(-1); // disable interrupt
+ // Handle any ctrl-c interrupt that arrived just in time
+ mp_handle_pending();
nlr_pop();
ret = 0;
if (exec_flags & EXEC_FLAG_PRINT_EOF) {