Skip to content

Commit 61ea449

Browse files
khoih-progLinks2004
authored andcommitted
Suppress esp32/sha.h warning
1 parent 28ed615 commit 61ea449

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/WebSockets.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@ extern "C" {
4242
#include <esp_system.h>
4343

4444
#if ESP_IDF_VERSION_MAJOR >= 4
45-
#include <esp32/sha.h>
45+
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(1, 0, 6) )
46+
#include "sha/sha_parallel_engine.h"
47+
#else
48+
#include <esp32/sha.h>
49+
#endif
4650
#else
47-
#include <hwcrypto/sha.h>
51+
#include <hwcrypto/sha.h>
4852
#endif
4953

5054
#else

0 commit comments

Comments
 (0)