mimxrt10xx: Fix bogus assertion.

.. as noted by @d-c-d
This commit is contained in:
Jeff Epler 2021-03-31 09:21:06 -05:00
parent 7471e978bb
commit cb29ad0846
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
if (self->rx) {
self->uart = mcu_uart_banks[self->rx->bank_idx - 1];
} else {
assert(self->rx);
assert(self->tx);
self->uart = mcu_uart_banks[self->tx->bank_idx - 1];
}