Skip to content

Commit 59d2646

Browse files
committed
Minor formatting fixes
1 parent 2131d86 commit 59d2646

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/WiFiSettingsService.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ void WiFiSettingsService::reconfigureWiFiConnection() {
6161
// disconnect and de-configure wifi and software access point
6262
WiFi.disconnect(true);
6363

64-
// configure static ip config for station mode (if set)
64+
// configure for static IP
6565
if (_staticIPConfig) {
6666
WiFi.config(_localIP, _gatewayIP, _subnetMask, _dnsIP1, _dnsIP2);
67-
} else { // else setting dynamic ip config and hostname
67+
} else {
68+
// configure for DHCP
6869
#if defined(ESP8266)
6970
WiFi.config(INADDR_ANY, INADDR_ANY, INADDR_ANY);
7071
WiFi.hostname(_hostname);
@@ -79,7 +80,7 @@ void WiFiSettingsService::reconfigureWiFiConnection() {
7980
}
8081

8182
void WiFiSettingsService::readIP(JsonObject& root, String key, IPAddress& _ip){
82-
if ( !root[key].is<String>() || !_ip.fromString(root[key].as<String>())){
83+
if (!root[key].is<String>() || !_ip.fromString(root[key].as<String>())){
8384
_ip = INADDR_NONE;
8485
}
8586
}

0 commit comments

Comments
 (0)