1.sync区分和增加些调试log

This commit is contained in:
payton 2023-08-11 23:17:54 +08:00
parent 9c941d1a4c
commit f791163c18

View File

@ -669,6 +669,7 @@ SINT32 app_system_param_update(void)
SINT32 app_system_poweroff(SF_POWEROFF_TYPE_E enType )
{
MLOGD("s\n");
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
sf_poweroff_type_set(enType);
@ -681,9 +682,13 @@ SINT32 app_system_poweroff(SF_POWEROFF_TYPE_E enType )
//if((puiPara->DebugMode) || (puiPara->QLogSwitch)){
// sync();
//}
sync();
if(SF_MCU_STARTUP_ONKEY != sf_poweron_type_get())
sync();
//MLOGD("s\n");
sf_mcu_reg_set(SF_MCU_POWEROFF,sf_poweroff_type_get());
sync();
if(SF_MCU_STARTUP_ONKEY != sf_poweron_type_get())
sync();
/*
SF_STORE_ATTR_S storeattrs = {0};
SF_STARTUP_TYPE_E startup = SF_MCU_STARTUP_ONKEY;
@ -973,11 +978,13 @@ SINT32 sf_app_para_check_stop(void)
return SF_SUCCESS;
}
ParaTskCfg.IsRun = 0;
MLOGD("s1\n");
if(TRUE == sf_get_para_check_flag()){
MLOGI("menu info is changed\n");
sf_share_mem_customer_down(1);
}
MLOGD("s2\n");
ret = pthread_join(ParaTskCfg.TskId, NULL);
if(ret != SF_SUCCESS)
@ -985,6 +992,7 @@ SINT32 sf_app_para_check_stop(void)
MLOGD("thread stop fail!\n");
return ret;
}
MLOGD("e\n");
return SF_SUCCESS;
}
@ -1268,6 +1276,14 @@ void* sf_app_load_ko_thread(void *arg)
UsbKoTskCfg.IsRun = 1;
sf_load_ko();
/*if((SF_MCU_STARTUP_NORMAL != sf_poweron_type_get()) && (0 == sf_get_fw_update()))
{
#if SF_IQ_TEST != ENABLE
sf_4G_usb_init();
app_RegisterNet_start();
#endif
}*/
UsbKoTskCfg.IsRun = 0;
SLOGI("thread end\n");