From 90cb389d3f488ebf54de6365628fafad7b525efe Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 25 一月 2024 18:06:56 +0800
Subject: [PATCH] 1

---
 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