diff --git a/components/espcoredump/src/core_dump_sha.c b/components/espcoredump/src/core_dump_sha.c index 5de67eaa56..fcd81ae978 100644 --- a/components/espcoredump/src/core_dump_sha.c +++ b/components/espcoredump/src/core_dump_sha.c @@ -31,7 +31,9 @@ static void core_dump_sha256_start(core_dump_sha_ctx_t *sha_ctx) static void core_dump_sha256_update(core_dump_sha_ctx_t *sha_ctx, const void *data, size_t data_len) { // set software mode of SHA calculation +#if CONFIG_MBEDTLS_HARDWARE_SHA sha_ctx->ctx.mode = ESP_MBEDTLS_SHA256_SOFTWARE; +#endif mbedtls_sha256_update(&sha_ctx->ctx, data, data_len); }