add more ota_err_code support for ota bootloader

This commit is contained in:
mculover666
2020-06-24 15:46:04 +08:00
parent 70b4bb126a
commit 142d3ebf7b
9 changed files with 62 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ ota_err_t ota_env_init(ota_updt_type_t updt_type, uint32_t partition_addr, ota_f
ota_partition_end(OTA_PARTITION_KV),
(kv_flash_drv_t *)flash_drv,
(kv_flash_prop_t *)flash_prop) != KV_ERR_NONE) {
return OTA_ERR_KV_FAIL;
return OTA_ERR_KV_INIT_FAIL;
}
return OTA_ERR_NONE;