Minore FW Tweeks

This commit is contained in:
jonatanrek committed 2019-11-30 18:35:45 +01:00
1 parent 563999e92d
commit 3bca87a4b3
2 files changed
+45 -33

No files matched your search

@@ -133,7 +133,8 @@ void setStaticIp(String IpAddress, String subnet, String gateway){
if (
staticIpAddress.fromString(ipAddress) &&
subnetIpAddress.fromString(subnet) &&
gatewayIpAddress.fromString(gateway)
gatewayIpAddress.fromString(gateway) &&
WiFi.localIP() != staticIpAddress
) {
WiFi.config(staticIpAddress, subnetIpAddress, gatewayIpAddress);
Serial.print("STATIC IP address:\t");