Skip to content

Commit

Permalink
WiFiClient bool operator as (stream != nullptr))
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Aug 3, 2020
1 parent 99bc49a commit 5040c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WiFiEspAT
version=1.2.0
version=1.2.1
author=Juraj Andrassy
maintainer=Juraj Andrassy <juraj.andrassy@gmail.com>
sentence=Enables network connection with esp8266 as network adapter.
Expand Down
2 changes: 1 addition & 1 deletion src/WiFiClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int WiFiClient::peek() {
}

WiFiClient::operator bool() {
return connected();
return (stream != nullptr);
}

uint8_t WiFiClient::connected() {
Expand Down

0 comments on commit 5040c8e

Please sign in to comment.