From 8576791834c98972a4de866f856831ce1d0583dd Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 25 Apr 2026 12:05:29 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E6=8E=A7=E4=B8=8E?= =?utf8?q?=E5=94=A4=E9=86=92=E7=9A=84=E9=85=8D=E7=BD=AE=E5=8C=BA=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/4g/cat1Service/Service/cat1_ctl.c | 10 ++++------ code/sdk/zhihui/4gTest/cat1_porting.c | 4 ++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/code/sdk/zhihui/4g/cat1Service/Service/cat1_ctl.c b/code/sdk/zhihui/4g/cat1Service/Service/cat1_ctl.c index be6c5a677..902f5e797 100644 --- a/code/sdk/zhihui/4g/cat1Service/Service/cat1_ctl.c +++ b/code/sdk/zhihui/4g/cat1Service/Service/cat1_ctl.c @@ -77,7 +77,11 @@ static ctl_pin_4g_t g_cat1_ctl_pins={ 1, //电路中 控制gpio拉高,reset才拉低 PIN_NONE,//ring_pin 0, + #ifdef SIO_UART_DISABLE_FLOW_CTRL PIN_NONE,//wakemodem_pin + #else + S_MGPIO21,//wakemodem_pin + #endif 0, #else PIN_NONE, //bat_pin @@ -298,18 +302,12 @@ static uint8_t cat1_keepon_wakeup = 0; extern void set_skip_cat1_service_udp_transfer(uint8_t skip); void cat1_api_keep_wakeup(uint8_t keep_wakeup) { -#ifndef SIO_UART_DISABLE_FLOW_CTRL - return; -#endif cat1_keepon_wakeup = keep_wakeup; // set_skip_cat1_service_udp_transfer(keep_wakeup); cat1_api_wakeup_cat1(cat1_keepon_wakeup); } void cat1_api_wakeup_cat1(uint8_t wakeup) { -#ifndef SIO_UART_DISABLE_FLOW_CTRL - return; -#endif pin_t en_pin = g_cat1_ctl_pins.wakemodem_pin; uint8_t en_value = g_cat1_ctl_pins.wakemodem_pin_en_value; uint8_t wake=wakeup; diff --git a/code/sdk/zhihui/4gTest/cat1_porting.c b/code/sdk/zhihui/4gTest/cat1_porting.c index e0840c73e..4eea17fc4 100644 --- a/code/sdk/zhihui/4gTest/cat1_porting.c +++ b/code/sdk/zhihui/4gTest/cat1_porting.c @@ -386,7 +386,11 @@ errcode_t cat1_api_porting_init(void) 1, PIN_NONE,//S_MGPIO22,//ring_pinb 0, + #ifdef SIO_UART_DISABLE_FLOW_CTRL PIN_NONE,//wakemodem_pin + #else + S_MGPIO21,//wakemodem_pin + #endif 0, #else PIN_NONE, //bat_pin -- 2.17.1