diff options
Diffstat (limited to 'hw/mcu/native/src/hal_uart.c')
-rw-r--r-- | hw/mcu/native/src/hal_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mcu/native/src/hal_uart.c b/hw/mcu/native/src/hal_uart.c index c30a4148..41afcc66 100644 --- a/hw/mcu/native/src/hal_uart.c +++ b/hw/mcu/native/src/hal_uart.c @@ -148,9 +148,9 @@ uart_transmit_char(struct uart *uart) OS_EXIT_CRITICAL(sr); return 0; } + ch = rc; uart_log_data(uart, 1, ch); OS_EXIT_CRITICAL(sr); - ch = rc; rc = write(uart->u_fd, &ch, 1); if (rc <= 0) { /* XXX EOF/error, what now? */ |