From 932b0ff31177b22810351183c9c47e82589167cd Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期二, 17 十二月 2024 14:52:23 +0800 Subject: [PATCH] 开关机逻辑完成,可实现无jlink下开关机 --- keil/include/src/gps.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keil/include/src/gps.c b/keil/include/src/gps.c index 82c4676..11ee264 100644 --- a/keil/include/src/gps.c +++ b/keil/include/src/gps.c @@ -7,7 +7,7 @@ #define GPS_RESTART_TIME3 30 //30s extern uint16_t gps_wait_count,g_com_map[COM_MAP_SIZE]; extern uint8_t flag_first_TCPconnect; -uint16_t gps_wait_count2; +extern uint16_t gps_wait_count2; uint16_t g_spsum,g_snum,ave_sp; uint8_t gps_power_state,gps_uwb_flag,gps_4g_flag,gps_timeout_flag,gps_need_data_flag = 1,gps_open_flag; void GPS_Poll(void) @@ -77,7 +77,7 @@ } void Gps_change(void) { -if(gps_open_flag){ + if(gps_open_flag){ if(gps_need_data_flag) { gps_power_state = 1; //打开GPS电源 -- Gitblit v1.9.3