From be37d33bc1d64fdbd48b86151093bf0d8f5727a5 Mon Sep 17 00:00:00 2001 From: payton Date: Wed, 20 Dec 2023 09:54:45 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=85=B3=E9=97=ADgps=E6=97=B6=E9=A6=96?= =?UTF-8?q?=E6=AC=A1=E5=90=AF=E5=8A=A8=E4=B9=9F=E5=8F=91=E4=B8=80=E6=AC=A1?= =?UTF-8?q?gps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/application/source/sf_app/code/source/app/sf_service.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/application/source/sf_app/code/source/app/sf_service.c b/code/application/source/sf_app/code/source/app/sf_service.c index 08ca4989c..c1dc92b39 100755 --- a/code/application/source/sf_app/code/source/app/sf_service.c +++ b/code/application/source/sf_app/code/source/app/sf_service.c @@ -1829,7 +1829,8 @@ static SINT32 app_Register_Net_startup_mode(SF_FN_PARAM_S *pfnParam) s32ret = sf_get_utc(); - if ((SF_ON == pCustomerParam->GpsSwitch)) { + if ((SF_ON == pCustomerParam->GpsSwitch) || (pCustomerParam->FristSendDailyAndGps)) + { s32ret = open_gps(s32ret); } if (0 != sf_get_cq_signal()) { @@ -1867,7 +1868,8 @@ static SINT32 app_Register_Net_startup_mode(SF_FN_PARAM_S *pfnParam) set_at_parament(); sf_USB_net_init(); - if ((SF_ON == pCustomerParam->GpsSwitch)) { + if ((SF_ON == pCustomerParam->GpsSwitch) || (pCustomerParam->FristSendDailyAndGps)) + { const int KEEP_SERACHING_TIMEOUT_MS = 2000; const int KEEP_SERACHING_PERIOD_MS = 200; // keep_seraching_gps_location(KEEP_SERACHING_TIMEOUT_S);