去除错误信息

This commit is contained in:
sc committed 2025-10-25 18:59:33 +08:00
1 parent 4fe95c9686
commit 1096dbb42f
2 files changed
+5 -13

No files matched your search

+1 -10
View File
@@ -10,13 +10,11 @@
# include <rtthread.h>
# include <rtdevice.h>
# include <board.h>
# include <stdio.h>
#include "uart_framework.h"
#include "data_comm.h"
#define LOG_TAG "uart.rx"
#define LOG_LVL LOG_LVL_DBG
//#include <ulog.h>
#define UART_NAME "uart2"
#define UART_BAUD_RATE BAUD_RATE_115200
@@ -102,8 +100,7 @@ static rt_err_t frame_handler(rt_uint8_t *data, rt_size_t size)
// 发送到处理线程
if (rt_mq_send(proc_mq, &req, sizeof(req)) == RT_EOK)
{
// 等待处理完成
{ // 等待处理完成
if (rt_sem_take(req->sem, RT_WAITING_FOREVER) == RT_EOK)
{
res= uart_framework_send(uf, (rt_uint8_t *)req->output, req->output_len);
@@ -114,12 +111,6 @@ static rt_err_t frame_handler(rt_uint8_t *data, rt_size_t size)
rt_free(req->sem);
rt_free(req);
//这里直接返回接收到的数据
// rt_uint8_t *frame_data = data;
// rt_uint16_t frame_len = size;
// rt_kprintf("rx_buf", 16, frame_data, frame_len);
// rt_err_t res = uart_framework_send(uf, frame_data, frame_len);
return res;
}