aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fsm/usart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fsm/usart.c b/src/fsm/usart.c
index ab6fc36..5dff116 100644
--- a/src/fsm/usart.c
+++ b/src/fsm/usart.c
@@ -148,12 +148,14 @@ void usart_gps_init()
static void usart_puts(USART_TypeDef* USART, const char* str)
{
+ vTaskSuspendAll();
while(*str) {
// wait until data register is empty
USART_SendData(USART, *str);
while(USART_GetFlagStatus(USART, USART_FLAG_TXE) == RESET) ;
str++;
}
+ xTaskResumeAll();
}
void usart_gps_puts(const char* str)