Skip to content

Commit

Permalink
Merge pull request #4518 from jepler/fix-bogus-assertion
Browse files Browse the repository at this point in the history
mimxrt10xx: Fix bogus assertion.
  • Loading branch information
dhalbert authored Mar 31, 2021
2 parents 5d8bdd2 + cb29ad0 commit 0e915dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/mimxrt10xx/common-hal/busio/UART.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 0e915dc

Please sign in to comment.