模块升级时关闭注网

This commit is contained in:
xiehongyan 2024-01-31 17:40:47 +08:00
parent a66314ed39
commit 73a4ba3c67
2 changed files with 6 additions and 0 deletions

View File

@ -264,6 +264,11 @@ SINT32 sf_USB_net_init(void)
static U16 flag = 0; static U16 flag = 0;
UIMenuStoreInfo *puiPara = sf_app_ui_para_get(); UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
if (!sf_app_while_flag())
{
printf("[%s:%d]is update ... \n", __FUNCTION__, __LINE__);
return;
}
if (flag == 0) if (flag == 0)
{ {
flag = 1; flag = 1;

View File

@ -1264,6 +1264,7 @@ UINT32 sf_4g_update(UINT8 *upFname)
printf("[%s:%d] cmd:%s\n", __FUNCTION__, __LINE__,cmdStr); printf("[%s:%d] cmd:%s\n", __FUNCTION__, __LINE__,cmdStr);
if (ret == SF_SUCCESS) { if (ret == SF_SUCCESS) {
system("killall quectel-CM-EG91");
ret = system(cmdStr); ret = system(cmdStr);
if (sf_poweron_type_get() == SF_MCU_STARTUP_RING) { if (sf_poweron_type_get() == SF_MCU_STARTUP_RING) {
sleep(2); sleep(2);