Skip to content

Commit

Permalink
Update ksWifiConnector.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 authored May 21, 2024
1 parent 582f45f commit be0b978
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ksf/comp/ksWifiConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ namespace ksf::comps

bool ksWifiConnector::loop(ksApplication* app)
{
if (wifiIpCheckTimer.triggered())
gotIpAddress = WiFi.localIP().operator uint32_t() != 0;

if (!isConnected())
{
if (wifiTimeoutTimer.triggered())
Expand Down Expand Up @@ -152,7 +149,7 @@ namespace ksf::comps

bool ksWifiConnector::isConnected() const
{
return WiFi.isConnected() && gotIpAddress;
return WiFi.isConnected();
}

ksWifiConnector::~ksWifiConnector()
Expand Down

0 comments on commit be0b978

Please sign in to comment.