1.ota升级修改
This commit is contained in:
parent
37325778eb
commit
630cdaafda
|
@ -1643,7 +1643,7 @@ SINT32 sf_camera_ota_ftp(void)
|
||||||
if(SF_TRUE == sf_file_IsExsit(tmp)){
|
if(SF_TRUE == sf_file_IsExsit(tmp)){
|
||||||
sf_file_remove(tmp);
|
sf_file_remove(tmp);
|
||||||
}
|
}
|
||||||
|
sleep(2);
|
||||||
ret = ftp_download_file(SF_CAM_UP_FILE,tmp,0);
|
ret = ftp_download_file(SF_CAM_UP_FILE,tmp,0);
|
||||||
//if(SUCCESS == ret)
|
//if(SUCCESS == ret)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2490,6 +2490,8 @@ SINT32 sf_power_off_module_ota(void)
|
||||||
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
|
UIMenuStoreInfo *puiPara = sf_app_ui_para_get();
|
||||||
/*instant, hybrid mode*/
|
/*instant, hybrid mode*/
|
||||||
if(CameraCmd.moduleUpdateOTA)
|
if(CameraCmd.moduleUpdateOTA)
|
||||||
|
{
|
||||||
|
if(0 == sf_check_sd())
|
||||||
{
|
{
|
||||||
if(app_ttyusb_IsOpen() != SUCCESS)
|
if(app_ttyusb_IsOpen() != SUCCESS)
|
||||||
{
|
{
|
||||||
|
@ -2510,6 +2512,7 @@ SINT32 sf_power_off_module_ota(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2571,6 +2574,8 @@ SINT32 sf_power_off_module_sd_update(void)
|
||||||
/*instant, hybrid mode*/
|
/*instant, hybrid mode*/
|
||||||
if(CameraCmd.moduleUpdateOTA)
|
if(CameraCmd.moduleUpdateOTA)
|
||||||
{
|
{
|
||||||
|
if(0 == sf_check_sd())
|
||||||
|
{
|
||||||
if(app_ttyusb_IsOpen() != SUCCESS)
|
if(app_ttyusb_IsOpen() != SUCCESS)
|
||||||
{
|
{
|
||||||
sf_cmd_camera_restart(1);//usb error,need restart
|
sf_cmd_camera_restart(1);//usb error,need restart
|
||||||
|
@ -2594,6 +2599,7 @@ SINT32 sf_power_off_module_sd_update(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/*************************************************
|
/*************************************************
|
||||||
|
@ -2850,7 +2856,7 @@ SINT32 sf_power_off_check_fw_update(void)
|
||||||
|
|
||||||
if(CameraCmd.firmwareUpdateOTA)
|
if(CameraCmd.firmwareUpdateOTA)
|
||||||
{
|
{
|
||||||
if(sf_in_card_exist() && sf_is_card())
|
if(0 == sf_check_sd())
|
||||||
{
|
{
|
||||||
|
|
||||||
if(app_ttyusb_IsOpen() != SUCCESS)
|
if(app_ttyusb_IsOpen() != SUCCESS)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user