1.mcu升级优化

This commit is contained in:
payton 2024-01-05 16:31:12 +08:00
parent a2cb0cb71c
commit ba4c4f471a

View File

@ -1627,6 +1627,10 @@ void* sf_app_mcu_updata_thread(void *arg)
char *file_path = sf_root_path_strcat(UPGRADE_FIRMWARE_NANE); char *file_path = sf_root_path_strcat(UPGRADE_FIRMWARE_NANE);
if(file_path == NULL) if(file_path == NULL)
{ {
MLOGI(" sf_power_off_msg_to_cardv\n");
MLOGE("MCU_UPGRADE no file\n");
sf_set_mcu_update_flag(0);
sf_power_off_msg_to_cardv();
return NULL; return NULL;
} }
ret = Fw_GetFirmwareSize(file_path, &McuFsize); ret = Fw_GetFirmwareSize(file_path, &McuFsize);