Skip to content

Commit 60f30e9

Browse files
Merge pull request #6811 from gojimmypi/esp32-sha-revert-verbosity
ESP32 debug only: Mode REVERT to ESP32_SHA_SW
2 parents f042863 + 4ece466 commit 60f30e9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/src/port/Espressif/esp32_sha.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,9 @@ int esp_sha_try_hw_lock(WC_ESP32SHA* ctx)
757757
else {
758758
/* We should have otherwise anticipated this; how did we get here?
759759
** This code should rarely, ideally never be reached. */
760+
#if defined(DEBUG_WOLFSSL)
760761
ESP_LOGI(TAG, "\nHardware in use; Mode REVERT to ESP32_SHA_SW\n");
762+
#endif
761763
ctx->mode = ESP32_SHA_SW;
762764
return 0; /* success, but revert to SW */
763765
}

0 commit comments

Comments
 (0)