From a60efa8202d84a2d3efe522009d700dac289538e Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 23 Apr 2018 20:44:30 +1000 Subject: stm32/uart: Allow ctrl-C to work with UARTs put on REPL via os.dupterm. --- ports/stm32/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ports/stm32/main.c') diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 4d0e7434b..eefe47490 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -543,6 +543,7 @@ soft_reset: MP_OBJ_NEW_SMALL_INT(MICROPY_HW_UART_REPL_BAUD), }; MP_STATE_PORT(pyb_stdio_uart) = pyb_uart_type.make_new((mp_obj_t)&pyb_uart_type, MP_ARRAY_SIZE(args), 0, args); + uart_attach_to_repl(MP_STATE_PORT(pyb_stdio_uart), true); } #else MP_STATE_PORT(pyb_stdio_uart) = NULL; -- cgit v1.2.3