From 9df3d897dd364037dc15e3b7f9b25ab22750ed65 Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 4 Sep 2023 09:55:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=BE=A9eg915q=E6=A8=A1=E5=A1=8A?= =?UTF-8?q?=E8=AE=80=E7=9F=AD=E4=BF=A1=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/application/source/sf_app/code/source/4gMng/sf_sms.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/application/source/sf_app/code/source/4gMng/sf_sms.c b/code/application/source/sf_app/code/source/4gMng/sf_sms.c index 5e6078f00..65d4d476b 100755 --- a/code/application/source/sf_app/code/source/4gMng/sf_sms.c +++ b/code/application/source/sf_app/code/source/4gMng/sf_sms.c @@ -1721,7 +1721,11 @@ SINT32 sf_check_message(void) char *temp = NULL; char *delim;// delim = "\""; - temp = strtok(strstr((const char *)gsmPara, strtmp), delim); + char *result = strstr((const char *)gsmPara, "+QCFG:"); + if(result != NULL) + { + temp = strtok(strstr(result, strtmp), delim); + } int mm = 0; char strtmp[12][70] = { { 0 } }; @@ -2153,7 +2157,7 @@ SINT32 sf_simcom_check_need_send(void) } /************************************************* - Function: sf_check_message + Function: sf_power_off_check_sms Description: Check unread and read messages. Input: N/A Output: N/A