diff --git a/ports/stm8/uart.c b/ports/stm8/uart.c index 026d3f6..732a769 100644 --- a/ports/stm8/uart.c +++ b/ports/stm8/uart.c @@ -67,7 +67,10 @@ char putchar (char c) /* Loop until the end of transmission */ while (UART2_GetFlagStatus(UART2_FLAG_TXE) == RESET) ; - + + /* Return mutex access */ + atomMutexPut(&uart_mutex); + } return (c);