From da4c556f6f183f215c8d11db0496e108efd6ef41 Mon Sep 17 00:00:00 2001 From: Tolentino Cotesta Date: Fri, 7 Jun 2024 14:13:15 +0200 Subject: [PATCH] Update AsyncWebSocket.cpp #include esp8266 fix --- src/ESPAsyncWebServer/src/AsyncWebSocket.cpp | 23 +++++++------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/ESPAsyncWebServer/src/AsyncWebSocket.cpp b/src/ESPAsyncWebServer/src/AsyncWebSocket.cpp index 497a7854..3cdec39f 100644 --- a/src/ESPAsyncWebServer/src/AsyncWebSocket.cpp +++ b/src/ESPAsyncWebServer/src/AsyncWebSocket.cpp @@ -20,23 +20,16 @@ */ #include "Arduino.h" #include "AsyncWebSocket.h" - #include -// #ifndef ESP8266 -// #include "mbedtls/sha1.h" -// #else -// #include -// #endif - -#ifdef ESP8266 - #include "mbedtls/sha1.h" -#else - #if ESP_ARDUINO_VERSION_MAJOR > 2 - #include "SHA1Builder.h" - #else - #include - #endif +#ifdef ESP8266 + #include +#else + #if ESP_ARDUINO_VERSION_MAJOR > 2 + #include "SHA1Builder.h" + #else + #include "mbedtls/sha1.h" + #endif #endif #define MAX_PRINTF_LEN 64