diff options
| -rw-r--r-- | ports/mimxrt10xx/common-hal/busio/UART.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/mimxrt10xx/common-hal/busio/UART.c b/ports/mimxrt10xx/common-hal/busio/UART.c index 552844f32..ec0296156 100644 --- a/ports/mimxrt10xx/common-hal/busio/UART.c +++ b/ports/mimxrt10xx/common-hal/busio/UART.c @@ -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]; } |
