From 7a67526ee4c5c0664e2b8b9a56e86a82eb9b238a Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期五, 10 十二月 2021 17:32:39 +0800
Subject: [PATCH] 0

---
 Src/application/dw_app.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index 9e42f29..20231a7 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -70,7 +70,7 @@
 #define FINAL_MSG_TS_LEN 4
 
 #define STARTPOLL  REGPOLL//#define SWITCHBASE_DIST
-//#define SWITCHBASE_ZHUANDIAN
+#define SWITCHBASE_ZHUANDIAN
 #define SWITCHBASE_DIST
 enum enumtagstate
 {
@@ -1013,7 +1013,7 @@
 	
 	//LED0_ON;
 	SPIx_CS_GPIO->BRR = SPIx_CS;
-	delay_us(700);
+	delay_us(2700);
     GetPressAndHeight();
     intheight = Height*100;
 	SPIx_CS_GPIO->BSRR = SPIx_CS;
@@ -1021,6 +1021,7 @@
 	    while (DWT_DEVICE_ID != id) 
     {
 		//	Dw1000_Init();
+        delay_us(700);
 			id =  dwt_readdevid() ;
         IdleTask();	
         if(error_times++>20)

--
Gitblit v1.9.3