Merge pull request #15 from hmalpani/bugfix/fix_unused_variable

esp_encrypted_img: fix for unused variable error during build
This commit is contained in:
Mahavir Jain 2022-02-24 19:22:06 +05:30 committed by GitHub
commit bdd4088007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: "1.0.1"
version: "1.0.2"
description: ESP Encrypted Image Abstraction Layer
url: https://github.com/espressif/idf-extra-components/tree/master/esp_encrypted_img
dependencies:

View File

@ -180,7 +180,9 @@ static esp_err_t process_bin(esp_encrypted_img_t *handle, pre_enc_decrypt_arg_t
{
size_t data_len = args->data_in_len;
size_t data_out_size = args->data_out_len;
#if !(MBEDTLS_VERSION_NUMBER < 0x03000000)
size_t olen;
#endif
handle->binary_file_read += data_len - curr_index;
int dec_len = 0;
if (handle->binary_file_read != handle->binary_file_len) {