Src/application/dw_app.c
@@ -764,6 +764,7 @@
            tagslotpos = current_slotpos%200;
            max_slotpos = rec_tagperiod*20;
            tag_frequency = 10/rec_tagperiod;
            bigslot_num = TOTAL_SLOTNUM/tag_frequency;
         tag_state=NEARPOLL;
      }
   }else{
@@ -837,7 +838,7 @@
    memcpy(&tx_near_msg[NEARBASEID_INDEX+nearbase_num*2],&nearbase_distlist,nearbase_num*4+4);
    memcpy(&tx_near_msg[NEARBASEID_INDEX+nearbase_num*6+4],&rec_anc_signalpower,nearbase_num*2+2);
    
    userkey_state = 0;
    if(intheight!=0)
    intheight+=g_com_map[HEIGHTOFFEST_INDEX];
    
@@ -954,7 +955,7 @@
                           dwt_writetxfctrl(28+nearbase_num*4, 0);//设定发送数据长度
                           dwt_setdelayedtrxtime(final_tx_time);//设置final包发送时间T5
                           result=dwt_starttx(DWT_START_TX_DELAYED);//设定为延迟发送   
                           userkey_state = !GET_USERKEY;
                        //   userkey_state = !GET_USERKEY;
                           memcpy(&temp_dist,&rx_buffer[DIST_IDX],4);
                                    if(temp_dist!=nearbase_distlist[0])
@@ -1085,11 +1086,11 @@
         }   
         if(mainbase_lost_count!=0)
         {
//            if(mainbase_lost_count<=tag_frequency*1)
//            {NextSlotDelayMs(0);
//            }else{
//               NextSlotDelayMs(0);
//            }
            if(mainbase_lost_count<=tag_frequency*1)
            {NextSlotDelayMs(0);
            }else{
               NextSlotDelayMs(0);
            }
         }   
         if(para_update)
@@ -1304,6 +1305,6 @@
   }       
    FZNearPoll();
    dwt_forcetrxoff();
    userkey_state = !GET_USERKEY;
//    userkey_state = !GET_USERKEY;
   dwt_entersleep();
}