Skip to content

Commit

Permalink
Fix build issue on ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-er committed Jan 12, 2021
1 parent 3386806 commit 817972f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/src/ESPEasyCore/ESPEasyWifi_ProcessEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,14 @@ void processGotIP() {

IPAddress ip = NetworkLocalIP();

if (!useStaticIP() && !ip.isSet()) {
return;
if (!useStaticIP()) {
#ifdef ESP8266
if (!ip.isSet()) {
#else
if (ip[0] == 0 && ip[1] == 0 && ip[2] == 0 && ip[3] == 0) {
#endif
return;
}
}
const IPAddress gw = NetworkGatewayIP();
const IPAddress subnet = NetworkSubnetMask();
Expand Down

0 comments on commit 817972f

Please sign in to comment.