8000 Merge branch 'master' of github.com:Links2004/arduinoWebSockets · joelkoz/arduinoWebSockets@ebdc8de · GitHub
[go: up one dir, main page]

Skip to content

Commit ebdc8de

Browse files
committed
Merge branch 'master' of github.com:Links2004/arduinoWebSockets
2 parents 44fb41e + cadbd64 commit ebdc8de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/WebSockets.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ extern "C" {
3939
#ifdef ESP8266
4040
#include <Hash.h>
4141
#elif defined(ESP32)
42+
#include <esp_system.h>
43+
44+
#if ESP_IDF_VERSION_MAJOR >= 4
45+
#include <esp32/sha.h>
46+
#else
4247
#include <hwcrypto/sha.h>
48+
#endif
49+
4350
#else
4451

4552
extern "C" {

0 commit comments

Comments
 (0)
0