From 16ae18ae09c6e7a0ef04ce0ffa216c2c145279aa Mon Sep 17 00:00:00 2001 From: gemi254 Date: Fri, 24 Nov 2023 14:03:59 +0200 Subject: [PATCH] Updated v1.2.2 --- src/network.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/network.h b/src/network.h index 859c170..eb46976 100644 --- a/src/network.h +++ b/src/network.h @@ -176,11 +176,7 @@ static void handleAssistRoot() { if(pServer->args() == 0) pServer->sendContent(String(HTML_PING_SCRIPT)); } -// Handler function for AP config form -static void handleAssistScan() { - conf.handleWifiScanRequest(); -} - + // Handler function for root of the web page static void handleRoot(){ //Read on each refresh @@ -539,8 +535,8 @@ void registerHandlers(){ //Handlers are registered by configAssist if(!apStarted){ pServer->on("/cfg", handleAssistRoot ); - pServer->on("/scan", handleAssistScan ); - conf.setup(*pServer, false); + //pServer->on("/scan", handleAssistScan ); + conf.setup(*pServer); } pServer->on("/pg", handlePing); pServer->on("/fs", handleFileSytem);