Skip to content

Commit f776454

Browse files
EngelthalerZATigrr
authored andcommitted
CaptivePortalAdvanced: Change debug print to println
1 parent 319adc6 commit f776454

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/DNSServer/examples/CaptivePortalAdvanced/CaptivePortalAdvanced.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void setup() {
5353
delay(1000);
5454
Serial.begin(9600);
5555
Serial.println();
56-
Serial.print("Configuring access point...");
56+
Serial.println("Configuring access point...");
5757
/* You can remove the password parameter if you want the AP to be open. */
5858
WiFi.softAPConfig(apIP, apIP, netMsk);
5959
WiFi.softAP(softAP_ssid, softAP_password);

libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void handleRoot() {
2727
/** Redirect to captive portal if we got a request for another domain. Return true in that case so the page handler do not try to handle the request again. */
2828
boolean captivePortal() {
2929
if (!isIp(server.hostHeader()) && server.hostHeader() != (String(myHostname) + ".local")) {
30-
Serial.print("Request redirected to captive portal");
30+
Serial.println("Request redirected to captive portal");
3131
server.sendHeader("Location", String("http://") + toStringIp(server.client().localIP()), true);
3232
server.send(302, "text/plain", ""); // Empty content inhibits Content-length header so we have to close the socket ourselves.
3333
server.client().stop(); // Stop is needed because we sent no content length

0 commit comments

Comments
 (0)