Merge pull request #4518 from jepler/fix-bogus-assertion

mimxrt10xx: Fix bogus assertion.
This commit is contained in:
Dan Halbert 2021-03-31 15:53:42 -04:00 committed by GitHub
commit 0e915dc3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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];
}