From 108bcd0a691130a98c71970b150b1dbde6906d08 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期五, 24 七月 2020 10:05:19 +0800 Subject: [PATCH] 修改串口index bug 增加MAP表注释 --- 源码/核心板/Src/application/dw_app.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" index 4b16154..20d2622 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" @@ -329,6 +329,7 @@ extern uint16_t sync_timer; u16 tmp_time; extern float dw_vbat; +extern u16 slottime,max_slotnum,current_slotpos,tyncpoll_time; void Tag_App(void)//发送模式(TAG标签) { uint32_t frame_len; @@ -493,10 +494,10 @@ // deca_sleep(10); } // dwt_entersleep(); -// if(tag_succ_times<g_com_map[MIN_REPORT_ANC_NUM]) -// { -// //poll_timer +=time32_incr&0x7+3; -// } + if(tag_succ_times<1) + { + tyncpoll_time=(current_slotpos--%max_slotnum)*slottime; + } /* Execute a delay between ranging exchanges. */ -- Gitblit v1.9.3