8000 machuart: change default to UART 1 · pycom/pycom-micropython-sigfox@d6a17b1 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit d6a17b1

Browse files
committed
machuart: change default to UART 1
afterall UART 0 is the REPL. I think it makes sense to not break the REPL by default. If needed people can still configure UART 0 explicitly.
1 parent aace45a commit d6a17b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/mods/machuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ STATIC mp_obj_t mach_uart_init_helper(mach_uart_obj_t *self, const mp_arg_val_t
456456
}
457457

458458
STATIC const mp_arg_t mach_uart_init_args[] = {
459-
{ MP_QSTR_id, MP_ARG_INT, {.u_int = MACH_UART_0} },
459+
{ MP_QSTR_id, MP_ARG_INT, {.u_int = MACH_UART_1} },
460460
{ MP_QSTR_baudrate, MP_ARG_INT, {.u_int = 9600} },
461461
{ MP_QSTR_bits, MP_ARG_INT, {.u_int = 8} },
462462
{ MP_QSTR_parity, MP_ARG_OBJ, {.u_obj = mp_const_none} },

0 commit comments

Comments
 (0)
0