From 9510cf0760cf50ddeef4b304a2322ceb9560066c Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期三, 24 一月 2024 10:31:52 +0800
Subject: [PATCH] Merge branch '免布线基站-lora' of http://47.108.70.204:60062/r/XRange_Tag into 免布线基站-lora

---
 Src/application/dw_app.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index bdb24bd..a2d6bac 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -253,8 +253,7 @@
   {
     current_count=HAL_LPTIM_ReadCounter(&hlptim1);
     target_count = GetUwbPollCount();
-    if(target_count<0)
-      target_count+=32768;
+    SwitchLoraSettings(UWB_CHANNEL_FRQ,5); //切换lora接收频点  
     while(current_count<target_count||current_count>target_count+16384)
     {
         current_count=HAL_LPTIM_ReadCounter(&hlptim1);
@@ -263,7 +262,6 @@
             break;
         }
     }
-    
     memcpy(&lora_start_poll_buff[ANC_ID_IDX],&g_com_map[DEV_ID],2);
     Radio.Send(lora_start_poll_buff, 4);
     UWB_Wkup();

--
Gitblit v1.9.3