From 61ea44942e5f987dbe229d07efd047b566c4a48b Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Thu, 17 Feb 2022 14:46:24 -0500 Subject: [PATCH] Suppress `esp32/sha.h` warning --- src/WebSockets.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/WebSockets.cpp b/src/WebSockets.cpp index ef8224c..13e1b32 100644 --- a/src/WebSockets.cpp +++ b/src/WebSockets.cpp @@ -42,9 +42,13 @@ extern "C" { #include #if ESP_IDF_VERSION_MAJOR >= 4 -#include + #if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(1, 0, 6) ) + #include "sha/sha_parallel_engine.h" + #else + #include + #endif #else -#include + #include #endif #else