From 47d2701b9408e1b904d89ebd58d6496fbc9f58ed Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期日, 07 三月 2021 10:03:03 +0800
Subject: [PATCH] V1.41  负数不输出 修改回复485无显示BUG

---
 源码/核心板/Src/application/dw_app.c |    6 ++++--
 1 files changed, 4 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 0f241c3..46c0646 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"
@@ -927,9 +927,9 @@
 					dis_after_filter=dist_cm;
 					hex_dist = dist_cm+(int16_t)g_com_map[DIST_OFFSET]*10;
 					g_flag_Taggetdist[taglist_pos]=0;
-					if(hex_dist>-10000&&hex_dist<2000000)
+					if(hex_dist>0&&hex_dist<2000000)
 					{
-					if(abs(hex_dist-his_dist[taglist_pos])<15000||misdist_num[taglist_pos]>3)
+					if(abs(hex_dist-his_dist[taglist_pos])<10000||misdist_num[taglist_pos]>3)
 					{
 						int32_t filter_dist;
 						#ifdef TDFILTER
@@ -1053,6 +1053,8 @@
 		
 			case NEAR_POLL:						
 				memcpy(&tag_id_recv,&rx_buffer[TAG_ID_IDX],2);
+			if(tag_id_recv>=g_com_map[WHITELIST1_START]&&tag_id_recv<=g_com_map[WHITELIST1_END])
+			{break;}
 				taglist_pos=CmpTagInList(tag_id_recv);
 				if(taglist_pos==taglist_num)
 				{

--
Gitblit v1.9.3