From f5a2bf301c213aadb6e0383332a01736626afef2 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期三, 01 三月 2023 10:33:20 +0800
Subject: [PATCH] 免布线基站v1.48,加入并完善uwb升级功能。uwb通道5

---
 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 2308719..5d5a49f 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -71,7 +71,7 @@
 #define FINAL_MSG_FINAL_TX_TS_IDX 18
 #define FINAL_MSG_TS_LEN 4
 static dwt_config_t config = {
-	2,               /* Channel number. */
+	5,               /* Channel number. */
 	DWT_PRF_64M,     /* Pulse repetition frequency. */
 	DWT_PLEN_128,    /* Preamble length. */
 	DWT_PAC8,        /* Preamble acquisition chunk size. Used in RX only. */
@@ -605,7 +605,7 @@
         if(memcmp(&calCRC,&rec_remotepara[5],2)==0)
         {   uint8_t pack_msgtype,pack_index,pack_length;
             pack_msgtype = rec_remotepara[0];
-            pack_index = rec_remotepara[1]*2;
+            pack_index = rec_remotepara[1];
             pack_length = rec_remotepara[2];
             if(pack_msgtype==2)
             {

--
Gitblit v1.9.3