8000 Merge pull request #4518 from jepler/fix-bogus-assertion · domdfcoding/circuitpython@0e915dc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e915dc

Browse files
authored
Merge pull request adafruit#4518 from jepler/fix-bogus-assertion
mimxrt10xx: Fix bogus assertion.
2 parents 5d8bdd2 + cb29ad0 commit 0e915dc

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