From 5040c8e6b47cfc48b59436c5d56ae1a6c14a3ed6 Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Mon, 3 Aug 2020 20:14:16 +0200 Subject: [PATCH] WiFiClient bool operator as (stream != nullptr)) --- library.properties | 2 +- src/WiFiClient.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index dcda39e..ecd84ce 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=WiFiEspAT -version=1.2.0 +version=1.2.1 author=Juraj Andrassy maintainer=Juraj Andrassy sentence=Enables network connection with esp8266 as network adapter. diff --git a/src/WiFiClient.cpp b/src/WiFiClient.cpp index 4a4fc99..3cfb8e7 100644 --- a/src/WiFiClient.cpp +++ b/src/WiFiClient.cpp @@ -138,7 +138,7 @@ int WiFiClient::peek() { } WiFiClient::operator bool() { - return connected(); + return (stream != nullptr); } uint8_t WiFiClient::connected() {