From 4833ae5830edf395f767a5afe1dacc66e3459de8 Mon Sep 17 00:00:00 2001 From: Suwatchai K Date: Thu, 5 Dec 2024 14:56:14 +0700 Subject: [PATCH] Fix issue #145 for compilation error in ESP32 Core v3.1.x --- src/client/SSLClient/client/BSSL_SSL_Client.h | 6 +++--- src/client/SSLClient/client/BSSL_TCP_Client.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/SSLClient/client/BSSL_SSL_Client.h b/src/client/SSLClient/client/BSSL_SSL_Client.h index 9891d59..18353e0 100644 --- a/src/client/SSLClient/client/BSSL_SSL_Client.h +++ b/src/client/SSLClient/client/BSSL_SSL_Client.h @@ -48,13 +48,13 @@ #if defined(ESP_ARDUINO_VERSION) /* ESP32 core >= v2.0.x */ #if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 1, 0) -#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE override; +#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE override; #define ESP32_ARDUINO_CORE_CLIENT_CONNECT_HAS_TMO #else -#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE +#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE #endif #else -#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE +#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE #endif #define BSSL_SSL_CLIENT_MIN_SESSION_TIMEOUT_SEC 60 diff --git a/src/client/SSLClient/client/BSSL_TCP_Client.h b/src/client/SSLClient/client/BSSL_TCP_Client.h index 45f232d..02e0e92 100644 --- a/src/client/SSLClient/client/BSSL_TCP_Client.h +++ b/src/client/SSLClient/client/BSSL_TCP_Client.h @@ -108,7 +108,7 @@ class BSSL_TCP_Client : public Client * @param timeout The connection time out in miiliseconds. * @return 1 for success or 0 for error. */ - int connect(IPAddress ip, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE; + int connect(IPAddress ip, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE; /** * Connect to server. @@ -125,7 +125,7 @@ class BSSL_TCP_Client : public Client * @param timeout The connection time out in miiliseconds. * @return 1 for success or 0 for error. */ - int connect(const char *host, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE; + int connect(const char *host, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE; /** * Get TCP connection status.