zhyinch
2020-12-14 8f01fa592775a87ef46c12a440db32fcc89d004f
Src/main.c
@@ -211,16 +211,19 @@
u16 current_slotnum;
extern int32_t offsettimeus;
//#define FIXSLOT
#define FIXSLOTPOS  0
#define FIXSLOTPOS  1
u16 slotpos_intoatl;
uint16_t bigslot_num;
uint8_t fix_slotpos =FIXSLOTPOS; 
int32_t lpcount,lptime,target_time;
extern u16 tagslotpos;
void SetNextPollTime(u16 slotpos)
{
#ifdef FIXSLOT
   fix_slotpos = g_com_map[ALARM_DISTANCE1];
   slotpos = fix_slotpos;
   tagslotpos = fix_slotpos;
#endif
   if(current_slotnum>=tag_frequency)
@@ -252,7 +255,7 @@
   Usart1ParseDataCallback = UsartParseDataHandler;
   parameter_init();
   //deca_sleep(1000);
   g_com_map[VERSION] = 0x020d;
   g_com_map[VERSION] = 0x020f;
#ifdef DEBUG_MODE
//   g_com_map[DEV_ROLE]=1;
   //   g_com_map[DEV_ID]=0x11;