From 4f9099aba6a36a6bf803e44f3ab3c5e979ee2446 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期四, 18 十一月 2021 11:45:59 +0800
Subject: [PATCH] V2.44 多功能

---
 Src/application/dw_app.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index babb107..e89cfba 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -766,7 +766,7 @@
 //			tyncpoll_time = (tagslotpos--%max_slotpos)*slottime;
 	}
 }
-
+uint8_t pack_length = 0,pack_index = 0,pack_msgtype = 0;
 void NearPoll(void)
 {
 	
@@ -1017,7 +1017,7 @@
 
 			if(para_update)
 			{
-			uint8_t pack_length = 0,pack_index = 0,pack_msgtype = 0;
+			
 				pack_msgtype = rec_remotepara[0];
 				pack_index = rec_remotepara[1];
 				pack_length = rec_remotepara[2];
@@ -1147,8 +1147,6 @@
 	//LED0_ON;
 	SPIx_CS_GPIO->BRR = SPIx_CS;
 	delay_us(700);
-   // GetPressAndHeight();
-   // intheight = Height*100;
 	SPIx_CS_GPIO->BSRR = SPIx_CS;
 	id =  dwt_readdevid() ;
 	    while (DWT_DEVICE_ID != id) 
@@ -1187,6 +1185,8 @@
 			break;
 		case NEARPOLL:	
 			NearPoll();
+			//GetPressAndHeight();
+			//intheight = Height*100;
 			break;
         case SINGLEPOLL:
             Poll();

--
Gitblit v1.9.3