1.修改无emmc时,可以进行sd卡升级

This commit is contained in:
payton 2024-02-05 16:21:30 +08:00
parent 630cdaafda
commit d64dedb7fb

View File

@ -2353,10 +2353,10 @@ int nvt_fw_update(bool firm_upd_firm)
extern struct mmc *init_mmc_device(int dev, bool force_init); extern struct mmc *init_mmc_device(int dev, bool force_init);
struct mmc *mmc; struct mmc *mmc;
mmc = init_mmc_device(curr_device, false); mmc = init_mmc_device(curr_device, false);
if (!mmc) { // if (!mmc) {
printf("Get eMMc device failed\n\r"); // printf("Get eMMc device failed\n\r");
return ERR_NVT_UPDATE_OPENFAILED; // return ERR_NVT_UPDATE_OPENFAILED;
} // }
typedef int (*set_blk_dev_cb)(void); typedef int (*set_blk_dev_cb)(void);
set_blk_dev_cb nvt_fs_set_blk_dev_cb = NULL; set_blk_dev_cb nvt_fs_set_blk_dev_cb = NULL;