提交 da899a7c 编写于 作者: 福明 提交者: skylarCai

IssueID:1832:Fix the return value of hal_uart_recv_II

[Detail]
hal_uart_recv_II returns 0 if no data received, instead of returning EIO.

[Verified Cases]
Build Pass: eduk1_demo
Test Pass: eduk1_demo
上级 4ed1fdb9
......@@ -564,11 +564,6 @@ int32_t hal_uart_recv_II(uart_dev_t *uart, void *data, uint32_t expect_size,
} while (1);
/*haven't get any data from fifo */
if (recved_len == 0) {
return EIO;
}
if (recv_size != NULL) {
*recv_size = recved_len;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册