mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(app_update): fixed undeclared variable 'ret' in esp_ota_ops.c
This commit is contained in:
@ -935,6 +935,7 @@ esp_err_t esp_ota_revoke_secure_boot_public_key(esp_ota_secure_boot_public_key_i
|
|||||||
}
|
}
|
||||||
|
|
||||||
const esp_partition_t *running_app_part = esp_ota_get_running_partition();
|
const esp_partition_t *running_app_part = esp_ota_get_running_partition();
|
||||||
|
esp_err_t ret = ESP_FAIL;
|
||||||
#ifdef CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE
|
#ifdef CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE
|
||||||
esp_ota_img_states_t running_app_state;
|
esp_ota_img_states_t running_app_state;
|
||||||
ret = esp_ota_get_state_partition(running_app_part, &running_app_state);
|
ret = esp_ota_get_state_partition(running_app_part, &running_app_state);
|
||||||
@ -949,7 +950,7 @@ esp_err_t esp_ota_revoke_secure_boot_public_key(esp_ota_secure_boot_public_key_i
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
esp_secure_boot_key_digests_t trusted_keys;
|
esp_secure_boot_key_digests_t trusted_keys;
|
||||||
esp_err_t ret = esp_secure_boot_read_key_digests(&trusted_keys);
|
ret = esp_secure_boot_read_key_digests(&trusted_keys);
|
||||||
if (ret != ESP_OK) {
|
if (ret != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "Could not read the secure boot key digests from efuse. Aborting..");
|
ESP_LOGE(TAG, "Could not read the secure boot key digests from efuse. Aborting..");
|
||||||
return ESP_FAIL;
|
return ESP_FAIL;
|
||||||
|
Reference in New Issue
Block a user