From e4d7c6073a5f3e99385abc7311480a4a845a1773 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期一, 28 十月 2024 18:13:10 +0800
Subject: [PATCH] 增加adc接地引脚逻辑修改adc采集电压bug,还有供电过低停止功能防止重启逻辑逻辑未加全

---
 keil/include/src/gps.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/keil/include/src/gps.c b/keil/include/src/gps.c
index 9121dd0..c13d0b2 100644
--- a/keil/include/src/gps.c
+++ b/keil/include/src/gps.c
@@ -1,13 +1,12 @@
 #include "board.h"
-#define GPS_OPEN_TIME_OUT  240
-#define GPS_RESTART_TIME1  1200
-#define GPS_RESTART_TIME2  120
+#define GPS_OPEN_TIME_OUT  48		//1分钟开启
+#define GPS_RESTART_TIME1  480  //10分钟
+#define GPS_RESTART_TIME2  48		//1分钟
 
 extern uint16_t gps_wait_count;
 uint8_t gps_power_state,gps_uwb_flag,gps_4g_flag,gps_timeout_flag,gps_need_data_flag = 1;
 void GPS_Poll(void)
 {
-
     if(gps_4g_flag||gps_uwb_flag) {
         gps_power_state = 1;  //打开GPS电源
         if(!gps_timeout_flag) {
@@ -52,6 +51,7 @@
         gps_timeout_flag=0;
         gps_need_data_flag=1;
     }
+		
 }
 void GpsConrol(uint8_t flag_4g_uwb,uint8_t open_close)
 {

--
Gitblit v1.9.3