Merge pull request #7390 from RetiredWizard/teensy41-uartfix

mimxrt10xx/common-hal/UART.C: Fix for bits parameter validation.
This commit is contained in:
Dan Halbert 2022-12-27 22:47:09 -05:00 committed by GitHub
commit 81e9f5013e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
bool sigint_enabled) { bool sigint_enabled) {
self->baudrate = baudrate; 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; self->timeout_ms = timeout * 1000;