Skip to content

Commit 4242971

Browse files
committed
use isWifiModeAp
1 parent f7b1009 commit 4242971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ void handleNotFound(MongooseHttpServerRequest *request)
12101210
DBUG("NOT_FOUND: ");
12111211
dumpRequest(request);
12121212

1213-
if((WIFI_AP_STA == WiFi.getMode()) || (WIFI_AP == WiFi.getMode())) {
1213+
if((net.isWifiModeAp()) {
12141214
// Redirect to the home page in AP mode (for the captive portal)
12151215
MongooseHttpServerResponseStream *response = request->beginResponseStream();
12161216
response->setContentType(CONTENT_TYPE_HTML);

0 commit comments

Comments
 (0)