From 572c0d3fc2e4b7bc0289eb1e56dbf838c6122912 Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Wed, 27 Dec 2023 20:04:02 +0100 Subject: [PATCH] EthernetClient.connect - return only 1 or 0 --- src/EthernetClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EthernetClient.cpp b/src/EthernetClient.cpp index aa2606b..9c71624 100644 --- a/src/EthernetClient.cpp +++ b/src/EthernetClient.cpp @@ -39,7 +39,7 @@ int EthernetClient::connect(const char *host, uint16_t port) if (ret == 1) { return connect(remote_addr, port); } else { - return ret; + return 0; } }