diff --git a/HttpClient.cpp b/HttpClient.cpp index 287e8c7..498d26c 100644 --- a/HttpClient.cpp +++ b/HttpClient.cpp @@ -78,7 +78,8 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod, if (iConnectionClose || !iClient->connected()) { - if (iServerName) { + if (iServerName) + { if (!iClient->connect(iServerName, iServerPort) > 0) { #ifdef LOGGING @@ -86,7 +87,9 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod, #endif return HTTP_ERROR_CONNECTION_FAILED; } - } else { + } + else + { if (!iClient->connect(iServerAddress, iServerPort) > 0) { #ifdef LOGGING diff --git a/WebSocketClient.cpp b/WebSocketClient.cpp index 1237b04..f78d946 100644 --- a/WebSocketClient.cpp +++ b/WebSocketClient.cpp @@ -340,7 +340,8 @@ int WebSocketClient::read(uint8_t *aBuffer, size_t aSize) // unmask the RX data if needed if (iRxMasked) { - for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) { + for (int i = 0; i < (int)aSize; i++, iRxMaskIndex++) + { aBuffer[i] ^= iRxMaskKey[iRxMaskIndex % sizeof(iRxMaskKey)]; } }