fix ascii protocol and add automated test for it

This commit is contained in:
Samuel Sadok
2018-05-15 21:37:49 -07:00
parent e0b0824783
commit a8267325ed
4 changed files with 88 additions and 8 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ void serve_on_uart() {
dma_last_rcv_idx = UART_RX_BUFFER_SIZE - huart4.hdmarx->Instance->NDTR;
// Start UART communication thread
osThreadDef(uart_server_thread_def, uart_server_thread, osPriorityNormal, 0, 512);
osThreadDef(uart_server_thread_def, uart_server_thread, osPriorityNormal, 0, 1024 /* the ascii protocol needs considerable stack space */);
uart_thread = osThreadCreate(osThread(uart_server_thread_def), NULL);
}