[Cryptech-Commits] [sw/stm32] 03/04: blocking recv

git at cryptech.is git at cryptech.is
Tue Mar 22 03:06:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch rpc
in repository sw/stm32.

commit 7c77c0dba0eede8d56ba90c9fef59d0c0a88249f
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Mon Mar 21 22:40:59 2016 -0400

    blocking recv
---
 stm-uart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 */



More information about the Commits mailing list