Skip to content

Commit a4f13a1

Browse files
committed
clang-format
1 parent 4115a87 commit a4f13a1

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

src/WebSockets.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
DEBUG_ESP_PORT.flush(); \
5151
}
5252
#else
53-
//#define DEBUG_WEBSOCKETS(...) os_printf( __VA_ARGS__ )
53+
// #define DEBUG_WEBSOCKETS(...) os_printf( __VA_ARGS__ )
5454
#endif
5555
#endif
5656

@@ -67,7 +67,7 @@
6767
#define WEBSOCKETS_USE_BIG_MEM
6868
#define GET_FREE_HEAP ESP.getFreeHeap()
6969
// moves all Header strings to Flash (~300 Byte)
70-
//#define WEBSOCKETS_SAVE_RAM
70+
// #define WEBSOCKETS_SAVE_RAM
7171

7272
#if defined(ESP8266)
7373
#define WEBSOCKETS_YIELD() delay(0)
@@ -122,12 +122,12 @@
122122
// select Network type based
123123
#if defined(ESP8266) || defined(ESP31B)
124124
#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266
125-
//#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266_ASYNC
126-
//#define WEBSOCKETS_NETWORK_TYPE NETWORK_W5100
125+
// #define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266_ASYNC
126+
// #define WEBSOCKETS_NETWORK_TYPE NETWORK_W5100
127127

128128
#elif defined(ESP32)
129129
#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP32
130-
//#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP32_ETH
130+
// #define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP32_ETH
131131

132132
#elif defined(ARDUINO_ARCH_RP2040)
133133
#define WEBSOCKETS_NETWORK_TYPE NETWORK_RP2040

src/WebSockets4WebServer.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@
2828
#include <WebSocketsServer.h>
2929
#include <ESP8266WebServer.h>
3030

31-
32-
#if ((WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_RP2040)) && WEBSERVER_HAS_HOOK
31+
#if((WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_RP2040)) && WEBSERVER_HAS_HOOK
3332

3433
class WebSockets4WebServer : public WebSocketsServerCore {
3534
#if defined(ESP8266)
36-
using WebServerClass = ESP8266WebServer;
35+
using WebServerClass = ESP8266WebServer;
3736
#else
38-
using WebServerClass = WebServer;
37+
using WebServerClass = WebServer;
3938
#endif
4039

4140
public:

src/WebSocketsClient.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void WebSocketsClient::loop(void) {
226226
_client.ssl->setCACert(_CA_cert);
227227
#elif defined(ESP8266) && defined(SSL_AXTLS)
228228
_client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
229-
#elif (defined(ESP8266) || defined(ARDUINO_ARCH_RP2040)) && defined(SSL_BARESSL)
229+
#elif(defined(ESP8266) || defined(ARDUINO_ARCH_RP2040)) && defined(SSL_BARESSL)
230230
_client.ssl->setTrustAnchors(_CA_cert);
231231
#else
232232
#error setCACert not implemented
@@ -428,9 +428,9 @@ bool WebSocketsClient::isConnected(void) {
428428
return (_client.status == WSC_CONNECTED);
429429
}
430430

431-
//#################################################################################
432-
//#################################################################################
433-
//#################################################################################
431+
// #################################################################################
432+
// #################################################################################
433+
// #################################################################################
434434

435435
/**
436436
*

src/WebSocketsServer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ IPAddress WebSocketsServerCore::remoteIP(uint8_t num) {
414414
}
415415
#endif
416416

417-
//#################################################################################
418-
//#################################################################################
419-
//#################################################################################
417+
// #################################################################################
418+
// #################################################################################
419+
// #################################################################################
420420

421421
/**
422422
* handle new client connection

0 commit comments

Comments
 (0)