From c0fb13f1543a71a46a4de45f5d37f50e5ce95ce1 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 19 十一月 2020 12:43:09 +0800 Subject: [PATCH] 去掉自动修改时间片操作 --- Src/application/dw_app.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 08c29a5..2e3bc79 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -69,7 +69,7 @@ #define FINAL_MSG_FINAL_TX_TS_IDX 18 #define FINAL_MSG_TS_LEN 4 -#define STARTPOLL DISCPOLL +#define STARTPOLL REGPOLL enum enumtagstate { REGPOLL, @@ -576,7 +576,7 @@ } if(getsync_flag==0) { - tagslotpos--; +// tagslotpos--; if(tagslotpos==0||tagslotpos>max_slotpos) { tagslotpos=max_slotpos; @@ -628,7 +628,7 @@ tag_state=NEARPOLL; } }else{ - tyncpoll_time = (tagslotpos--%max_slotpos)*slottime; +// tyncpoll_time = (tagslotpos--%max_slotpos)*slottime; } } extern u8 userkey_state; @@ -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