aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/main.c
diff options
context:
space:
mode:
authorDamien George2018-04-23 20:44:30 +1000
committerDamien George2018-04-23 20:44:30 +1000
commita60efa8202d84a2d3efe522009d700dac289538e (patch)
tree43ee5ecec4af95bc1ea9f0d09ba004536611b33d /ports/stm32/main.c
parent513e5372155bed86285aa38ce828390c65d52761 (diff)
stm32/uart: Allow ctrl-C to work with UARTs put on REPL via os.dupterm.
Diffstat (limited to 'ports/stm32/main.c')
-rw-r--r--ports/stm32/main.c1
1 files changed, 1 insertions, 0 deletions
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;