diff options
| author | Jeff Epler <jeff@adafruit.com> | 2020-08-25 21:01:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-25 21:01:33 -0500 |
| commit | 2e0a10933116e69d6dacc67d3180ea52ca32509d (patch) | |
| tree | d2fc35b092bc147682cf701f323f3201ef5348d6 /lib/utils | |
| parent | 78c512e86b5c61d337e10cb5ec598cecd728c5f6 (diff) | |
| parent | c0753c1afb09dab873da02e6f98a492cb913f0e9 (diff) | |
Merge pull request #3318 from jepler/interrupt-serial-rx
supervisor: check for interrupt during rx_chr
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) { |
