diff --git a/main/ZwebUI.ino b/main/ZwebUI.ino index efa5303ff3..3ba8fad57f 100644 --- a/main/ZwebUI.ino +++ b/main/ZwebUI.ino @@ -814,6 +814,7 @@ void handleMQ() { server.send(200, "text/html", response); } +# ifndef ESPWifiManualSetup /** * @brief /CG - Configure Gateway Page * T: handleCG: uri: /gw, args: 2, method: 1 @@ -882,6 +883,7 @@ void handleCG() { response += String(buffer); server.send(200, "text/html", response); } +# endif /** * @brief /LO - Configure Logging Page @@ -1486,7 +1488,9 @@ void WebUISetup() { server.on("/cn", handleCN); // Configuration server.on("/wi", handleWI); // Configure Wifi server.on("/mq", handleMQ); // Configure MQTT +# ifndef ESPWifiManualSetup server.on("/cg", handleCG); // Configure Gateway" +# endif server.on("/wu", handleWU); // Configure WebUI # ifdef ZgatewayLORA server.on("/la", handleLA); // Configure LORA diff --git a/main/config_WebContent.h b/main/config_WebContent.h index c114cb932c..82b70fdcab 100644 --- a/main/config_WebContent.h +++ b/main/config_WebContent.h @@ -48,7 +48,11 @@ #else # define configure_3 #endif*/ -#define configure_3 "
" +#ifndef ESPWifiManualSetup +# define configure_3 "" +#else +# define configure_3 +#endif #define configure_4 "" #define configure_5 "" #ifdef ZgatewayLORA @@ -99,8 +103,9 @@ const char config_wifi_body[] = body_header "%s