diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-08-26 18:50:26 -0400 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-08-26 18:50:26 -0400 |
| commit | 8d2299e61e482f0edbf9f58bd20043761a30492a (patch) | |
| tree | 9ee7c5402119e79795eb05d19ffbc9e50b49a4f8 /lib/utils | |
| parent | de9fd4a0fb26c1a62b97d6175c75568b68e50abd (diff) | |
| parent | 58a7419b4ffcc99a7ea290f878f65b7e09acf027 (diff) | |
Merge remote-tracking branch 'upstream/main' into stm32-meowbit-fix
Diffstat (limited to 'lib/utils')
| -rwxr-xr-x | lib/utils/pyexec.c | 2 |
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) { |
