Skip to content

Commit ba556dd

Browse files
committed
remove compile flags for GUI v2
1 parent 6ed827f commit ba556dd

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/web_server_static.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,12 @@ struct StaticFile
2929

3030
#define IS_ALIGNED(x) (0 == ((uint32_t)(x) & 0x3))
3131

32-
#ifdef WEB_SERVER_ROOT_PAGE_INDEX
3332
#define WEB_SERVER_INDEX_PAGE "index.html"
34-
#else
35-
#define WEB_SERVER_INDEX_PAGE "home.html"
36-
#endif
3733

3834
// Pages
3935
static const char _HOME_PAGE[] PROGMEM = "/" WEB_SERVER_INDEX_PAGE;
4036
#define HOME_PAGE FPSTR(_HOME_PAGE)
4137

42-
#ifndef DISABLE_WIFI_PORTAL
43-
static const char _WIFI_PAGE[] PROGMEM = "/wifi_portal.html";
44-
#define WIFI_PAGE FPSTR(_WIFI_PAGE)
45-
#endif
46-
4738
class StaticFileResponse: public MongooseHttpServerResponse
4839
{
4940
private:
@@ -59,9 +50,6 @@ static bool web_static_get_file(MongooseHttpServerRequest *request, StaticFile *
5950
String path = request->uri();
6051
if(path == "/") {
6152
path = String(
62-
#ifndef DISABLE_WIFI_PORTAL
63-
net.isWifiModeApOnly() ? WIFI_PAGE :
64-
#endif
6553
HOME_PAGE);
6654

6755
}

0 commit comments

Comments
 (0)