From d6ec38899e0d165d858156aa2821497b4b5c51de Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期日, 06 七月 2025 19:41:11 +0800
Subject: [PATCH] V2.4 修改14个基站溢出的bug

---
 keil/uwb_app.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/keil/uwb_app.c b/keil/uwb_app.c
index 45aa7e4..d6f15cf 100644
--- a/keil/uwb_app.c
+++ b/keil/uwb_app.c
@@ -49,11 +49,11 @@
 //resp函数
 void PushAnchorDataArray(uint16_t ancid,int16_t dist,uint8_t battary);//找到自己的id信息对应位置更新自己的交互信息
 static void resp_msg_set_ts(uint8_t *ts_field, int64_t ts);//用来对应位置放入时间戳
-static uint16_t tagid_list[TAG_NUM_IN_SYS];
+uint16_t tagid_list[TAG_NUM_IN_SYS];
 uint16_t CmpTagInList(uint16_t tagid);
 uint8_t Anchor_RecNearPoll(uint8_t ancrec_nearbasepos);
 static uint8_t send_buffer[100];
-static uint8_t tagofflinetime[TAG_NUM_IN_SYS];
+uint8_t tagofflinetime[TAG_NUM_IN_SYS];
 uint32_t temp_count=0;
 uint32_t temp_count1=0;
 uint32_t temp_endcount1=0;
@@ -423,10 +423,10 @@
 }
 uint32_t start_receive_count,end_receive_count,poll_timeout,current_count,temp_resp;
 uint16_t anchordata_id[TAG_NUM_IN_SYS],anchordata_dist[TAG_NUM_IN_SYS];
-static uint8_t anchordata_bat[TAG_NUM_IN_SYS];
-static int8_t anchor_rssi[TAG_NUM_IN_SYS];
+uint8_t anchordata_bat[TAG_NUM_IN_SYS];
+int8_t anchor_rssi[TAG_NUM_IN_SYS];
 uint8_t anchordata_num = 0;
-static int16_t tagdist_list[TAG_NUM_IN_SYS];
+int16_t tagdist_list[TAG_NUM_IN_SYS];
 uint16_t random_time;
 //anchor
 int32_t hist_dist;
@@ -820,7 +820,7 @@
 //                Anchor_RecNearPoll(i);
 //            }
         taglist_pos=CmpTagInList(tag_id_recv);
-        if(taglist_num>=TAG_NUM_IN_SYS)
+        if(taglist_pos>=TAG_NUM_IN_SYS)
             return 0;
         for(i=0; i<rec_nearbase_num; i++)
         {

--
Gitblit v1.9.3