From 61d0c713d6a39c970f4900c4db5c3626c34aea11 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期三, 13 三月 2024 17:46:23 +0800
Subject: [PATCH] 版本V1.11,Lora发完延迟700改到1000us

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

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index c38c735..469bb8e 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -264,7 +264,7 @@
     memcpy(&lora_start_poll_buff[ANC_ID_IDX],&g_com_map[DEV_ID],2);
     Radio.Send(lora_start_poll_buff, 4);
     UWB_Wkup();   
-    delay_us(700);
+    delay_us(1000);
     MBXANCPoll();
 	dwt_entersleep();
     next_poll_state = Next_Poll_LORASYNC;
@@ -285,7 +285,7 @@
 //          target_count = GetLoraSyncCount()-(18000)/LPTIMER_LSB+sync_lost_count*1000;
 //      }else
       {
-        target_count = GetLoraSyncCount()-(18000)/LPTIMER_LSB;  //比上次收到的lora提前17ms唤醒(lora接收大概17ms),如果在同步间隔内,则会快速进入休眠。
+        target_count = GetLoraSyncCount()-(23000)/LPTIMER_LSB;  //比上次收到的lora提前17ms唤醒(lora接收大概17ms),如果在同步间隔内,则会快速进入休眠。
       }
       if(target_count<0)
       target_count+=32768;

--
Gitblit v1.9.3