diff options
author | Paul Selkirk <paul@psgd.org> | 2016-03-21 22:40:59 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-03-21 22:40:59 -0400 |
commit | 7c77c0dba0eede8d56ba90c9fef59d0c0a88249f (patch) | |
tree | fbbf70f883ad0931a91287e450f7db380cde30f7 | |
parent | 785863c1166224a234d6dc1f5035fb7f3f77efe6 (diff) |
blocking recv
-rw-r--r-- | stm-uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |