1.开机时清空一些参数

This commit is contained in:
payton 2024-01-24 19:53:36 +08:00
parent edcfc175e1
commit 80ba515a4c
3 changed files with 11 additions and 0 deletions

View File

@ -2367,6 +2367,10 @@ void sf_power_on_para_check_init(void)
puiPara->SdFileSwitch = 0;
memset(puiPara->SimIccid,'\0',sizeof(puiPara->SimIccid));
memset(puiPara->ServiceProvider,'\0',sizeof(puiPara->ServiceProvider));
memset(puiPara->Longitude, 0, sizeof(puiPara->Longitude));
memset(puiPara->Latitude, 0, sizeof(puiPara->Latitude));
memset(puiPara->SimIccidV,'\0',sizeof(puiPara->SimIccidV));
memset(puiPara->SimIccidA,'\0',sizeof(puiPara->SimIccidA));
}
else if(PowerOnMode == PWR_ON_GPRS_INIT)
{

View File

@ -302,6 +302,10 @@ void sf_app_power_on_para_check_init(void)
puiPara->SdFileSwitch = 0;
memset(puiPara->SimIccid,'\0',sizeof(puiPara->SimIccid));
memset(puiPara->ServiceProvider,'\0',sizeof(puiPara->ServiceProvider));
memset(puiPara->Longitude, 0, sizeof(puiPara->Longitude));
memset(puiPara->Latitude, 0, sizeof(puiPara->Latitude));
memset(puiPara->SimIccidV,'\0',sizeof(puiPara->SimIccidV));
memset(puiPara->SimIccidA,'\0',sizeof(puiPara->SimIccidA));
}
else if(PowerOnMode == SF_MCU_STARTUP_RESET)
{

View File

@ -1742,8 +1742,11 @@ void sf_power_on_para_check_init(void)
puiPara->GpsSendFlag = 0;
puiPara->SdFileSwitch = 0;
memset(puiPara->SimIccid,'\0',sizeof(puiPara->SimIccid));
memset(puiPara->ServiceProvider,'\0',sizeof(puiPara->ServiceProvider));
memset(puiPara->Longitude, 0, sizeof(puiPara->Longitude));
memset(puiPara->Latitude, 0, sizeof(puiPara->Latitude));
memset(puiPara->SimIccidV,'\0',sizeof(puiPara->SimIccidV));
memset(puiPara->SimIccidA,'\0',sizeof(puiPara->SimIccidA));
//sf_dailyReport_refresh();
}
else if(PowerOnMode == PWR_ON_GPRS_INIT)