From 891a65ef76618a265c4254e45c1928d9c241a7ce Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期一, 26 八月 2024 09:39:00 +0800 Subject: [PATCH] 加入gps工作流程,马达震动流程 --- keil/include/src/TCPClient.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/keil/include/src/TCPClient.c b/keil/include/src/TCPClient.c index 07d3e73..c9e6744 100644 --- a/keil/include/src/TCPClient.c +++ b/keil/include/src/TCPClient.c @@ -36,6 +36,7 @@ * Local Variable * *******************************************************************************/ HIDO_INT32 l_i32TCPClientID = 0; +extern uint8_t gps_power_state; static E_TCPClientState l_eTCPClientState = TCP_CLIENT_STATE_IDLE; static HIDO_UINT32 l_u32HeartBeatTick = 0; static HIDO_UINT8 l_au8CmdBuff[1024]; @@ -285,9 +286,9 @@ } void AIR780E_Reset(void) { - gps_air780_power_change(0,0);//开启gps,4G + gps_air780_power_change(gps_power_state,0);//开启gps,4G delay_us(1500000); - gps_air780_power_change(0,1);//开启gps,4G + gps_air780_power_change(gps_power_state,1);//开启gps,4G } uint8_t IfTCPConnected(void) { -- Gitblit v1.9.3