diff options
Diffstat (limited to 'os/hal/src/uart.c')
-rw-r--r-- | os/hal/src/uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/src/uart.c b/os/hal/src/uart.c index 281d6ad78..9c200763f 100644 --- a/os/hal/src/uart.c +++ b/os/hal/src/uart.c @@ -222,7 +222,7 @@ void uartStartReceive(UARTDriver *uartp, size_t n, void *rxbuf) { "uartStartReceive(), #1",
"not active");
- uart_lld_start_receive(uartp, n, txbuf);
+ uart_lld_start_receive(uartp, n, rxbuf);
uartp->ud_rxstate = UART_RX_ACTIVE;
chSysUnlock();
}
@@ -247,7 +247,7 @@ void uartStartReceiveI(UARTDriver *uartp, size_t n, void *rxbuf) { "uartStartReceiveI(), #1",
"not active");
- uart_lld_start_receive(uartp, n, txbuf);
+ uart_lld_start_receive(uartp, n, rxbuf);
uartp->ud_rxstate = UART_RX_ACTIVE;
}
|