From 983efd61fb7a6e707f7a1c8036a4d2a7c6ae3737 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Thu, 21 Nov 2019 15:20:15 +0100 Subject: [PATCH] Only connect with static IP if GW is configured (#362) --- wled00/wled00.ino | 2 +- wled00/wled05_init.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/wled00.ino b/wled00/wled00.ino index 67f0e5eb0..937f1c898 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -99,7 +99,7 @@ //version code in format yymmddb (b = daily build) -#define VERSION 1911201 +#define VERSION 1911211 char versionString[] = "0.8.7-dev"; diff --git a/wled00/wled05_init.ino b/wled00/wled05_init.ino index db390229e..a851a5d68 100644 --- a/wled00/wled05_init.ino +++ b/wled00/wled05_init.ino @@ -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