Skip to content

Commit

Permalink
Only connect with static IP if GW is configured (wled#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Nov 21, 2019
1 parent e1354ac commit 983efd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wled00/wled00.ino
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@


//version code in format yymmddb (b = daily build)
#define VERSION 1911201
#define VERSION 1911211
char versionString[] = "0.8.7-dev";


Expand Down
2 changes: 1 addition & 1 deletion wled00/wled05_init.ino
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void initConnection()
{
WiFi.disconnect(); //close old connections

if (staticIP[0] != 0)
if (staticIP[0] != 0 && staticGateway[0] != 0)
{
WiFi.config(staticIP, staticGateway, staticSubnet, IPAddress(8,8,8,8));
} else
Expand Down

0 comments on commit 983efd6

Please sign in to comment.