diff --git a/arch/xtensa/src/esp32s3/esp32s3_partition.c b/arch/xtensa/src/esp32s3/esp32s3_partition.c index 03ec24fc1c..04a2307eca 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_partition.c +++ b/arch/xtensa/src/esp32s3/esp32s3_partition.c @@ -801,7 +801,7 @@ int esp32s3_partition_init(void) finfo("INFO: [size]: 0x%08" PRIx32 "\n", info->size); finfo("INFO: [flags]: 0x%08" PRIx32 "\n", info->flags); finfo("INFO: [mount]: %s\n", path); - if (flags & PARTITION_FLAG_ENCRYPTED) + if (encrypt && (flags & PARTITION_FLAG_ENCRYPTED)) { mtd_ll = mtd_encrypt; finfo("INFO: [encrypted]\n\n");