Possibility to disable Web interface
Save ~12k
This commit is contained in:
parent
76c06690a2
commit
a14210e0d9
@ -1,3 +1,4 @@
|
||||
#ifndef CONFIG_DISABLE_WEB
|
||||
const int gpioWebConf[] = CONFIG_WEB_CONTROLLED_GPIO;
|
||||
const int pwmWebConf[] = CONFIG_CONTROLLED_PWM;
|
||||
|
||||
@ -296,5 +297,13 @@ void WebSetupServer(int ) {
|
||||
server.begin();
|
||||
SKETCH_DEBUG_PRINTLN("HTTP server started");
|
||||
}
|
||||
#else
|
||||
|
||||
|
||||
void WebHandleRoot(){}
|
||||
void WebHandleSetup(){}
|
||||
void WebHandleGpio(){}
|
||||
void WebHandleSave(){}
|
||||
void WebHandleOTA(){}
|
||||
void WebHandleNotFound(){}
|
||||
void WebSetupServer(int bootmode){}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user