From c86894972dd4de29dfe145a735dba95668a1164a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Fri, 24 Jan 2025 09:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=8A=E7=94=B5?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=87=8D=E5=90=AF?= =?UTF-8?q?=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_nt26k.c | 8 ++++---- bsp/src/bsp_vin_detection.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bsp/src/bsp_nt26k.c b/bsp/src/bsp_nt26k.c index 0c3aaa8..a36e083 100644 --- a/bsp/src/bsp_nt26k.c +++ b/bsp/src/bsp_nt26k.c @@ -2,7 +2,7 @@ * @Author: mbw * @Date: 2024-10-09 08:42:14 * @LastEditors: mbw && 1600520629@qq.com - * @LastEditTime: 2025-01-23 09:24:08 + * @LastEditTime: 2025-01-24 08:43:53 * @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c * @Description: * @@ -814,7 +814,7 @@ int Nt26k_Process_Events(Nt26kEvent nt26k_recv_event, struct at_device *device, { // 收不到说明在平台未注册,此时nt26k_connect_sever_flag 为0,但nt26k_conncet_tcp_flag = 1;此时不发起重连,等待事件触发就行 nt26k_connect_sever_flag = 0; - return RT_EOK; + continue; } } if (rt_strcmp(event->event_name, "掉电事件") == RT_EOK) @@ -845,8 +845,8 @@ int Nt26k_Process_Events(Nt26kEvent nt26k_recv_event, struct at_device *device, rt_thread_mdelay(3000); } } - // 函数执行完毕,返回0 - return RT_EOK; + + return RT_ERROR; } // 比较帧头和帧尾 diff --git a/bsp/src/bsp_vin_detection.c b/bsp/src/bsp_vin_detection.c index 620ba76..b3902b2 100644 --- a/bsp/src/bsp_vin_detection.c +++ b/bsp/src/bsp_vin_detection.c @@ -48,7 +48,7 @@ uint16_t Get_VIN_VoltageInt1000x(void) { uint16_t voltage = (Get_ADC_Average(kVinAdc) * 3.3 / 4096) * VIN_VOLTAGE_RATIO * 1000; - LOG_D("Get_VIN_VoltageInt1000x = %04d", voltage); + // LOG_D("Get_VIN_VoltageInt1000x = %04d", voltage); return voltage; } #ifdef FINSH_USING_MSH