From 6c87b494401e48edc87fc0ada04858f424501656 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期五, 07 七月 2023 10:11:23 +0800
Subject: [PATCH] 版本v2.5,加入加速度计驱动,输出厘米。

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

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index 226c813..493981e 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -29,7 +29,7 @@
 #include <stdio.h>
 #include "beep.h"
 #include "modbus.h"
-
+#include "BMP390.h"
 /*------------------------------------ Marcos ------------------------------------------*/
 /* Inter-ranging delay period, in milliseconds. */
 #define RNG_DELAY_MS 100
@@ -1270,6 +1270,7 @@
 }
 u32 id,error_times=0;
 extern float Height;
+extern float Altitude;
 void Tag_App(void)//发送模式(TAG标签)
 {
 	
@@ -1297,6 +1298,7 @@
 			LED_LG_ON;		
 			Registor_Poll();			
 			LED_LG_OFF;
+//        GetPressAndHeight();
 			break;
 		case DISCPOLL:
 			LED_LG_ON;		
@@ -1315,8 +1317,8 @@
 			break;
 		case NEARPOLL:	
 			NearPoll();
-			//GetPressAndHeight();
-			//intheight = Height*100;
+			GetPressAndHeight();
+			intheight =Altitude*100;
 			break;
         case SINGLEPOLL:
           //  Poll();

--
Gitblit v1.9.3