Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 3855324

Browse files
committed
removed obsolete comments
1 parent 57eba05 commit 3855324

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ESPAsync_WiFiManager_Lite.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ class ESPAsync_WiFiManager_Lite
952952
#if USE_LED_BUILTIN
953953
// turn the LED_BUILTIN OFF to tell us we exit configuration mode.
954954
digitalWrite(LED_BUILTIN, LED_OFF);
955-
#endif
955+
#endif
956956

957957
if (dnsServer) {
958958
dnsServer->stop();
@@ -2990,9 +2990,6 @@ class ESPAsync_WiFiManager_Lite
29902990

29912991
delay(100); // ref: https://github.com/espressif/arduino-esp32/issues/985#issuecomment-359157428
29922992

2993-
// Move up for ESP8266
2994-
//WiFi.softAPConfig(portal_apIP, portal_apIP, IPAddress(255, 255, 255, 0));
2995-
29962993
if (!server)
29972994
{
29982995
server = new AsyncWebServer(HTTP_PORT);
@@ -3004,14 +3001,12 @@ class ESPAsync_WiFiManager_Lite
30043001
}
30053002

30063003
//See https://stackoverflow.com/questions/39803135/c-unresolved-overloaded-function-type?rq=1
3007-
if (server)
3004+
if (server && dnsServer)
30083005
{
30093006
// CaptivePortal
30103007
// if DNSServer is started with "*" for domain name, it will reply with provided IP to all DNS requests
30113008
dnsServer->start(DNS_PORT, "*", portal_apIP);
3012-
//server->addHandler(new CaptiveRequestHandler()).setFilter(ON_AP_FILTER); //only when requested from AP
30133009
// replay to all requests with same HTML
3014-
//server->on("/", HTTP_GET, [this](AsyncWebServerRequest * request)
30153010
server->onNotFound([this](AsyncWebServerRequest *request)
30163011
{
30173012
handleRequest(request);

0 commit comments

Comments
 (0)