zhyinch
2020-11-06 1abba6d0da35b3a89fead56896bf82c1b9aa7831
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,
@@ -619,12 +619,12 @@
      {
         nearbase_num=rx_buffer[NEARBASENUM_INDEX];
         memcpy(&rec_tagpos_binary,&rx_buffer[NEARMSG_EMPTYSLOTPOS_INDEX],4);
         tagslotpos=GetRandomSlotPos(rec_tagpos_binary);
      //   tagslotpos=GetRandomSlotPos(rec_tagpos_binary);
         //tagslotpos=rx_buffer[TAGSLOTPOS];
         memcpy(nearbaseid_list,&rx_buffer[NEARBASEID_INDEX],nearbase_num*2);
         //slottime=ceil((nearbase_num+2)*0.3)+1;
         //tyncpoll_time=tagslotpos*slottime;
         tyncpoll_time=(g_com_map[DEV_ID]%max_slotpos)*slottime;
         //tyncpoll_time=(g_com_map[DEV_ID]%max_slotpos)*slottime;
         tag_state=NEARPOLL;
      }
   }else{