From 6777eb77964fa79e39cb34112d23d8a3acae1ef3 Mon Sep 17 00:00:00 2001
From: zhangbo <zhangbo@qq.com>
Date: 星期三, 02 七月 2025 11:00:24 +0800
Subject: [PATCH] 按照文档修改4G下发指令,杨总测试过的版本V1.25

---
 keil/uwb_app.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/keil/uwb_app.c b/keil/uwb_app.c
index 1d3e2a4..2084bc7 100644
--- a/keil/uwb_app.c
+++ b/keil/uwb_app.c
@@ -741,6 +741,7 @@
 //                    rxnum=0;
 }
 extern uint32_t step_count;
+extern uint8_t uwb_OpenClose_flag;
 void UWBIdleTask(void)
 {
 //    if(receive_flag)
@@ -759,7 +760,7 @@
 		step_count = mir3da_get_step(); // 获取步数
 		uwbtasktimer = HIDO_TimerGetTick();
 		UWBOneSecondTask();
-		if(g_com_map[UWBFrequency]==1)
+		if(g_com_map[UWBFrequency]==1&&uwb_OpenClose_flag==1)
         {
 		UWBSendUDPTask();
         }
@@ -772,9 +773,9 @@
 extern uint8_t uwb_offtime_count;
 int Anchor_App(void)
 {
-				uint8_t i;
-				uint16_t tempid;
-	      uwb_offtime_count=0;
+           uint8_t i;
+		   uint16_t tempid;
+	       uwb_offtime_count=0;
 	#ifdef  CEJU_ZIUMIAN
 	 current_state = STATE_NORMAL;
 	#endif

--
Gitblit v1.9.3