From de6722364e969c4f260f3ff14ec389e6036631ef Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 27 六月 2023 12:55:21 +0800 Subject: [PATCH] V2.51 修改临近切换次数为5次 --- Src/application/dw_app.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 58b2e3c..1db496f 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -1094,7 +1094,7 @@ if(salvebase_mindist<mainbase_dist- THRESHOLD_CHANGE_MAINBASE_DIST ) { changemainbase_count++; - if(changemainbase_count>tag_frequency*2) + if(changemainbase_count>5) { mainbase_id = mindist_slavebaseid; tag_state = GETNEARMSG; @@ -1104,13 +1104,13 @@ changemainbase_count = 0; } #endif - }else if(mainbase_lost_count>5*tag_frequency) + }else if(mainbase_lost_count>10) { tag_state = DISCPOLL; } if(mainbase_lost_count!=0) { - if(mainbase_lost_count<=tag_frequency*1) + if(mainbase_lost_count<=5) {NextSlotDelayMs(0); }else{ NextSlotDelayMs(0); -- Gitblit v1.9.3