Skip to content

Commit fdb14b6

Browse files
authored
Fix logical not usage error
Esp32 compiler has `-Werror=logical-not-parentheses` by default and won't compile original code.
1 parent c014e0c commit fdb14b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod,
8484
{
8585
if (iServerName)
8686
{
87-
if (!(iClient->connect(iServerName, iServerPort) > 0))
87+
if (!iClient->connect(iServerName, iServerPort))
8888
{
8989
#ifdef LOGGING
9090
Serial.println("Connection failed");
@@ -94,7 +94,7 @@ int HttpClient::startRequest(const char* aURLPath, const char* aHttpMethod,
9494
}
9595
else
9696
{
97-
if (!(iClient->connect(iServerAddress, iServerPort) > 0))
97+
if (iClient->connect(iServerAddress, iServerPort))
9898
{
9999
#ifdef LOGGING
100100
Serial.println("Connection failed");

0 commit comments

Comments
 (0)