提交 f5d92764 编写于 作者: Lawlieta's avatar Lawlieta

[net][at] Add AT serial device receive data length judgment.

上级 c2add5cb
......@@ -577,7 +577,11 @@ static void client_parser(at_client_t client)
static rt_err_t at_client_rx_ind(rt_device_t dev, rt_size_t size)
{
rt_sem_release(at_client_local->rx_notice);
if (size > 0)
{
rt_sem_release(at_client_local->rx_notice);
}
return RT_EOK;
}
......
......@@ -433,7 +433,10 @@ __retry:
static rt_err_t at_rx_ind(rt_device_t dev, rt_size_t size)
{
rt_sem_release(at_server_local->rx_notice);
if (size > 0)
{
rt_sem_release(at_server_local->rx_notice);
}
return RT_EOK;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册