8000 mimxrt10xx: Fix bogus assertion. · rsbohn/circuitpython@cb29ad0 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb29ad0

Browse files
committed
mimxrt10xx: Fix bogus assertion.
.. as noted by @d-c-d
1 parent 7471e97 commit cb29ad0

File tree

1 file changed

+1
-1
lines changed
  • ports/mimxrt10xx/common-hal/busio

1 file changed

+1
-1
lines changed

ports/mimxrt10xx/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
216216
if (self->rx) {
217217
self->uart = mcu_uart_banks[self->rx->bank_idx - 1];
218218
} else {
219-
assert(self->rx);
219+
assert(self->tx);
220220
self->uart = mcu_uart_banks[self->tx->bank_idx - 1];
221221
}
222222

0 commit comments

Comments
 (0)
0