From 613cb918c5d9d0c7bef84514c21dcca216d7b334 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期四, 29 十月 2020 12:27:00 +0800 Subject: [PATCH] V1.31 标签有点bug --- 源码/核心板/Src/main.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" index 953c548..89fd526 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" @@ -71,7 +71,7 @@ { g_com_map[COM_INTERVAL]=100; } - g_com_map[VERSION] = 0x011c; + g_com_map[VERSION] = 0x011f; dev_id = g_com_map[DEV_ID]; slottime=ceil((double)g_com_map[MAX_REPORT_ANC_NUM]*SLOT_SCALE)+3; max_slotpos=g_com_map[COM_INTERVAL]/slottime; @@ -151,6 +151,16 @@ } if(flag_newsecond) { + uint32_t temp23; + temp23 = dwt_read32bitreg(CHAN_CTRL_ID) ; + if(temp23!=0x4A480022) + { + temp23 = dwt_read32bitreg(CHAN_CTRL_ID) ; + if(temp23!=0x4A480022) + { + NVIC_SystemReset(); + } + } flag_newsecond=0; tagpos_binary=0; memcpy(ancidlist_send,ancidlist_rec,ancidlist_num*2); -- Gitblit v1.9.3