From 643809f2cd7143577987aed55ff1e4102e83cda8 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期三, 16 九月 2020 08:23:37 +0800 Subject: [PATCH] GETNEARMSG 模式有BUG,去掉这个模式 --- 源码/核心板/Src/application/dw_app.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 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 16a2c81..225eecc 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" @@ -5,7 +5,7 @@ DISCPOLL, GETNEARMSG, NEARPOLL, -}tag_state=GETNEARMSG; +}tag_state=NEARPOLL; static dwt_config_t config = { 2, /* Channel number. */ DWT_PRF_64M, /* Pulse repetition frequency. */ @@ -553,7 +553,7 @@ // } tagslotpos=GetRandomSlotPos(rec_tagpos_binary|tagpos_binary); tyncpoll_time = (tagslotpos--%max_slotpos)*slottime; - tag_state=GETNEARMSG; + tag_state=NEARPOLL; } // tyncpoll_time=0; next_nearbase_num=0; @@ -686,6 +686,13 @@ tyncpoll_time = (tagslotpos--%max_slotpos)*slottime; } + #ifdef USART_INTEGRATE_OUTPUT + usart_send[2] = 4;//正常模式 + usart_send[3] = report_num*6+2;//正常模式 + checksum = Checksum_u16(&usart_send[2],report_num*6+2); + memcpy(&usart_send[4+report_num*6],&checksum,2); + UART_PushFrame(usart_send,6+report_num*6); + #endif } void Tag_App(void)//发送模式(TAG标签) -- Gitblit v1.9.3