aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm-uart.c')
-rw-r--r--stm-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm-uart.c b/stm-uart.c
index 9934870..a271e7f 100644
--- a/stm-uart.c
+++ b/stm-uart.c
@@ -49,7 +49,7 @@ HAL_StatusTypeDef uart_send_char(uint8_t ch)
/* receive a single character */
HAL_StatusTypeDef uart_recv_char(uint8_t *cp)
{
- return HAL_UART_Receive(&huart2, cp, 1, 0x0);
+ return HAL_UART_Receive(&huart2, cp, 1, HAL_MAX_DELAY);
}
/* send a string */