Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e363947

Browse filesBrowse files
committed
Make bracket style consistent
1 parent f9f75fb commit e363947
Copy full SHA for e363947

File tree

2 files changed

+7
-3
lines changed
Filter options

2 files changed

+7
-3
lines changed

‎HttpClient.cpp

Copy file name to clipboardExpand all lines: HttpClient.cpp
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,18 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod,
7878

7979
if (iConnectionClose || !iClient->connected())
8080
{
81-
if (iServerName) {
81+
if (iServerName)
82+
{
8283
if (!iClient->connect(iServerName, iServerPort) > 0)
8384
{
8485
#ifdef LOGGING
8586
Serial.println("Connection failed");
8687
#endif
8788
return HTTP_ERROR_CONNECTION_FAILED;
8889
}
89-
} else {
90+
}
91+
else
92+
{
9093
if (!iClient->connect(iServerAddress, iServerPort) > 0)
9194
{
9295
#ifdef LOGGING

‎WebSocketClient.cpp

Copy file name to clipboardExpand all lines: WebSocketClient.cpp
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ int WebSocketClient::read(uint8_t *aBuffer, size_t aSize)
340340
// unmask the RX data if needed
341341
if (iRxMasked)
342342
{
343-
for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) {
343+
for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++)
344+
{
344345
aBuffer[i] ^= iRxMaskKey[iRxMaskIndex % sizeof(iRxMaskKey)];
345346
}
346347
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.