aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-03-21 22:40:59 -0400
committerPaul Selkirk <paul@psgd.org>2016-03-21 22:40:59 -0400
commit7c77c0dba0eede8d56ba90c9fef59d0c0a88249f (patch)
treefbbf70f883ad0931a91287e450f7db380cde30f7
parent785863c1166224a234d6dc1f5035fb7f3f77efe6 (diff)
blocking recv
-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 */