From 07f7a9b6e66e5673380e173c4d710d6f9acb557d Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期三, 28 五月 2025 14:36:07 +0800
Subject: [PATCH] 增加5V输入检测,每检测到5V输入30s内不休眠,开始时1s不休眠版本

---
 keil/dw_app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/keil/dw_app.c b/keil/dw_app.c
index b7dda3b..45c2966 100644
--- a/keil/dw_app.c
+++ b/keil/dw_app.c
@@ -128,7 +128,7 @@
 			
 			 if(distance>-1000&&distance<100000)
           {
-            taglist_dist[i+taglist_current_index]  = distance+(int16_t)g_com_map[OFFSET_AS_URT_TAG];//offset未加
+            taglist_dist[i+taglist_current_index]  = distance+(int16_t)g_com_map[DIST_OFFSET];//offset未加
           }else{
 						taglist_dist[i] = 0x2ffff;
 					}

--
Gitblit v1.9.3