From c609da3722c1fdd7546d39119cc2953881b01fa0 Mon Sep 17 00:00:00 2001 From: payton Date: Thu, 17 Aug 2023 15:10:52 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=B7=B3=E9=81=8Eusb=20net=E8=A8=AD=E7=BD=AE?= =?UTF-8?q?apn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/4gMng/sf_eg91_sim.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c b/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c index 48b208d0c..69811f3fd 100755 --- a/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c +++ b/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c @@ -491,6 +491,7 @@ SINT32 eg91_usb_net_apn_cfg(SF_FN_PARAM_S *pfnParam) UINT16 count = 0; SINT32 ret = SF_SUCCESS; SINT32 ret1 = SF_SUCCESS; + return ret; //SINT32 fd = 0; //int retryTime = 0; //SF_CHAR ttyData[SF_TTYUSB_RECV_MAX] = { 0 }; @@ -4622,7 +4623,14 @@ SINT32 sf_get_ntp(SINT32 value, SF_PARA_TIME_S *current_time) eSmsLocation = SMS_SIM_INIT_ATCNTP; calltime = 0; } - + else if(strstr((const char *)gsmPara, "ERROR") != NULL) + { + SLOGE(gsmPara); + sprintf((char *)logStr, "Error Code:0x%08X\n",ret); + SLOGE(logStr); + ret = SF_SIM_ERROR_NTP; + goto SF_GEN_NTP_END; + } break; case SMS_SIM_INIT_ATCNTP: