ESP32 debug only: Mode REVERT to ESP32_SHA_SW

This commit is contained in:
gojimmypi
2023-09-26 08:32:23 -07:00
parent 237d10ab1e
commit 4ece466fca

View File

@ -757,7 +757,9 @@ int esp_sha_try_hw_lock(WC_ESP32SHA* ctx)
else {
/* We should have otherwise anticipated this; how did we get here?
** This code should rarely, ideally never be reached. */
#if defined(DEBUG_WOLFSSL)
ESP_LOGI(TAG, "\nHardware in use; Mode REVERT to ESP32_SHA_SW\n");
#endif
ctx->mode = ESP32_SHA_SW;
return 0; /* success, but revert to SW */
}