From 3db912651e297c662fcd190b79d2ca90a34a8f66 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期三, 18 十二月 2019 08:36:47 +0800
Subject: [PATCH] 无UID校验V1.13

---
 源码/核心板/Src/application/dw_app.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 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 def4780..e7c4a18 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"
@@ -475,7 +475,8 @@
 int8_t correction_time;
 extern uint8_t sync_seq;
 #define TDFILTER
-
+//#define CHECK_UID
+extern uint8_t UID_ERROR;
 void Anchor_App(void)
 {
 	uint32_t frame_len;
@@ -590,6 +591,10 @@
 					final_msg_get_ts(&rx_buffer[FINAL_MSG_RESP_RX_TS_IDX], &resp_rx_ts);
 					final_msg_get_ts(&rx_buffer[FINAL_MSG_FINAL_TX_TS_IDX], &final_tx_ts);
 
+					#ifdef CHECK_UID
+					if(UID_ERROR==1)
+						poll_rx_ts=0;
+					#endif
 					/* Compute time of flight. 32-bit subtractions give correct answers even if clock has wrapped. See NOTE 10 below. */
 					poll_rx_ts_32 = (uint32_t)poll_rx_ts;//使用32位数据计算
 					resp_tx_ts_32 = (uint32_t)resp_tx_ts;

--
Gitblit v1.9.3