From 8a6a630eddf6aa71e0f8d26ee510ab3f67f17e8e Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期三, 28 五月 2025 14:38:24 +0800 Subject: [PATCH] V1.12版本,新增5V输入检测和修改看门狗位置,和上次提交一致 --- 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