1.ota升级修改

This commit is contained in:
payton 2024-02-05 15:57:53 +08:00
parent 37325778eb
commit 630cdaafda
2 changed files with 47 additions and 41 deletions

View File

@ -1643,7 +1643,7 @@ SINT32 sf_camera_ota_ftp(void)
if(SF_TRUE == sf_file_IsExsit(tmp)){
sf_file_remove(tmp);
}
sleep(2);
ret = ftp_download_file(SF_CAM_UP_FILE,tmp,0);
//if(SUCCESS == ret)
{

View File

@ -2490,6 +2490,8 @@ SINT32 sf_power_off_module_ota(void)
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
/*instant, hybrid mode*/
if(CameraCmd.moduleUpdateOTA)
{
if(0 == sf_check_sd())
{
if(app_ttyusb_IsOpen() != SUCCESS)
{
@ -2510,6 +2512,7 @@ SINT32 sf_power_off_module_ota(void)
}
}
}
}
return ret;
}
@ -2571,6 +2574,8 @@ SINT32 sf_power_off_module_sd_update(void)
/*instant, hybrid mode*/
if(CameraCmd.moduleUpdateOTA)
{
if(0 == sf_check_sd())
{
if(app_ttyusb_IsOpen() != SUCCESS)
{
sf_cmd_camera_restart(1);//usb error,need restart
@ -2594,6 +2599,7 @@ SINT32 sf_power_off_module_sd_update(void)
}
}
}
}
return 0;
}
/*************************************************
@ -2850,7 +2856,7 @@ SINT32 sf_power_off_check_fw_update(void)
if(CameraCmd.firmwareUpdateOTA)
{
if(sf_in_card_exist() && sf_is_card())
if(0 == sf_check_sd())
{
if(app_ttyusb_IsOpen() != SUCCESS)