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