From 52cbcc608dbcf47139a118bf3baf2731fd7ae0db Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期五, 13 十一月 2020 15:55:57 +0800 Subject: [PATCH] 增加主基站丢失十次进入DISCOVER模式 --- Src/application/dw_app.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 08c29a5..8843bf4 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -799,10 +799,10 @@ dwt_forcetrxoff(); dwt_write32bitreg(SYS_STATUS_ID,SYS_STATUS_RXFCG| SYS_STATUS_ALL_RX_ERR); j=0; - if(exsistbase_list[0]==0) - { +// if(exsistbase_list[0]==0) +// { // SetNextPollTime(tagslotpos); - } +// } // tyncpoll_time=0; // next_nearbase_num=0; // for(i=0;i<nearbase_num;i++) @@ -852,10 +852,10 @@ // mainbase_id = true_nearbase_idlist[0]; // tag_state = GETNEARMSG; // } -// if(mainbase_lost_count>3) -// { -// tag_state = DISCPOLL; -// } + if(mainbase_lost_count>10) + { + tag_state = DISCPOLL; + } // for (i=0;i<nearbase_num;i++) // { // if(nearbaseid_list[i]==0) -- Gitblit v1.9.3