From 5102fff8a13c0319d8125a51d3d2354e7aacdcea Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期四, 31 七月 2025 16:40:06 +0800
Subject: [PATCH] 修改为2HZ发poll包,修改second task从原来2s一次为1s一次

---
 keil/include/main/main.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/keil/include/main/main.c b/keil/include/main/main.c
index c687682..f7e8f7c 100644
--- a/keil/include/main/main.c
+++ b/keil/include/main/main.c
@@ -310,7 +310,7 @@
         second_count = 0;
         MinuteTask();
     }
-		poll_flag=1;
+	
 //			if(bind_flag)
 //	{
 //		if(bind_count--<=0)
@@ -342,7 +342,7 @@
 
     }
 //	}
-    HIDO_TimerTick();
+    	HIDO_TimerTick();
 		if(nomove_count<=g_com_map[NOMOVESLEEP_TIME])//防止溢出
     nomove_count++;
 		else{
@@ -371,6 +371,7 @@
 
 static void sleep_timer_callback(void *dev, uint32_t time)
 {
+	poll_flag=1;
 
 if(secondtask_count++%2==0)
     {
@@ -515,7 +516,8 @@
 int tt2;
 int test1,test3;
 uint32_t test4;
-#define SLEEP_TIMER_NUM 1000
+//uint16_t count_tag;
+#define SLEEP_TIMER_NUM 500
 int main(void)
 {
     board_clock_run();
@@ -575,6 +577,7 @@
 				uwb_app_poll();
 				if(poll_flag)
 				{
+				//	count_tag++;
 				CloseUWB();//关闭接收
 				Tag_uwb_aoa_square_init();
 				TagRange();	//做标签

--
Gitblit v1.9.3