From e53c046d08a448638a56af05ca293310e10b0228 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期四, 24 四月 2025 17:49:38 +0800 Subject: [PATCH] V1.11版本加入一小时后无测距重启逻辑,缩减开机后为1s全速运行 --- keil/uwb_tag_.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/keil/uwb_tag_.c b/keil/uwb_tag_.c index 287fc39..da9eddd 100644 --- a/keil/uwb_tag_.c +++ b/keil/uwb_tag_.c @@ -194,6 +194,7 @@ extern double distance; extern uint8_t bat_percent; uint32_t count1,count2; +extern uint32_t reboot_num; enum SIMPLE_FSM_T { SIMPLE_IDLE = 0, @@ -654,6 +655,7 @@ sleep_timer_start(__MS_TO_32K_CNT(SLEEP_COUNT-rand_temp));//测试 }else if (rx_buf[MESSAGE_TYPE_IDX] == MBX_RESPONSE&&!memcmp(&rx_buf[TAG_ID_IDX],&dev_id,2)&&rx_buf[GROUP_ID_IDX]==group_id) //判断接收到的数据是否是response数据 { + reboot_num=0;//清0复位监测数值 memcpy(&rec_nearbaseid,&rx_buf[ANCHOR_ID_IDX],2); rec_tag_index = CmpTagInList(rec_nearbaseid);//当前新来的这包数据插入当前表中的位置索引 //rec_nearbasepos=FindNearBasePos(rec_nearbaseid); -- Gitblit v1.9.3