mimxrt10xx/common-hal/UART.C: Fix for bits parameter validation.

I believe this will resolve issue #7389
This commit is contained in:
RetiredWizard 2022-12-27 22:07:54 -05:00
parent 785ebe1f41
commit 7a40d449e6

View File

@ -113,7 +113,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
bool sigint_enabled) {
self->baudrate = baudrate;
self->character_bits = (uint8_t)mp_arg_validate_int_range(self->character_bits, 7, 8, MP_QSTR_bits);
self->character_bits = (uint8_t)mp_arg_validate_int_range(bits, 7, 8, MP_QSTR_bits);
self->timeout_ms = timeout * 1000;