Merge pull request #4518 from jepler/fix-bogus-assertion
mimxrt10xx: Fix bogus assertion.
This commit is contained in:
commit
0e915dc3fb
@ -216,7 +216,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
if (self->rx) {
|
if (self->rx) {
|
||||||
self->uart = mcu_uart_banks[self->rx->bank_idx - 1];
|
self->uart = mcu_uart_banks[self->rx->bank_idx - 1];
|
||||||
} else {
|
} else {
|
||||||
assert(self->rx);
|
assert(self->tx);
|
||||||
self->uart = mcu_uart_banks[self->tx->bank_idx - 1];
|
self->uart = mcu_uart_banks[self->tx->bank_idx - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user