From 5cfff190e9bc6edd7c9dfc31f8af50957c863872 Mon Sep 17 00:00:00 2001 From: Luc Date: Mon, 3 Dec 2018 16:17:16 +0100 Subject: [PATCH] removing log (#2140) * Use right function for BSSID * removing log --- libraries/WiFi/src/WiFiClient.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/WiFi/src/WiFiClient.cpp b/libraries/WiFi/src/WiFiClient.cpp index 14a4d4f4..0b35a8b2 100644 --- a/libraries/WiFi/src/WiFiClient.cpp +++ b/libraries/WiFi/src/WiFiClient.cpp @@ -439,9 +439,8 @@ uint8_t WiFiClient::connected() if (_connected) { uint8_t dummy; int res = recv(fd(), &dummy, 0, MSG_DONTWAIT); - if(res < 0) { - log_e("RES: %d", res); - } + // avoid unused var warning by gcc + (void)res; switch (errno) { case EWOULDBLOCK: case ENOENT: //caused by vfs