diff options
Diffstat (limited to 'teensy/uart.c')
-rw-r--r-- | teensy/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/teensy/uart.c b/teensy/uart.c index 97a1a058c9..e3a35153bc 100644 --- a/teensy/uart.c +++ b/teensy/uart.c @@ -309,7 +309,7 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, uint n_args, const mp if (vals[3].u_obj == mp_const_none) { init->Parity = UART_PARITY_NONE; } else { - machine_int_t parity = mp_obj_get_int(vals[3].u_obj); + mp_int_t parity = mp_obj_get_int(vals[3].u_obj); init->Parity = (parity & 1) ? UART_PARITY_ODD : UART_PARITY_EVEN; } init->Mode = UART_MODE_TX_RX; |