From 8f01fa592775a87ef46c12a440db32fcc89d004f Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期一, 14 十二月 2020 17:30:39 +0800 Subject: [PATCH] V2.15 255时间片不生效 --- Src/main.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Src/main.c b/Src/main.c index 30e5b35..e394a64 100644 --- a/Src/main.c +++ b/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; -- Gitblit v1.9.3