diff --git a/config_feedc0de.cmake b/config_feedc0de.cmake index a6ee7e1..7897f01 100644 --- a/config_feedc0de.cmake +++ b/config_feedc0de.cmake @@ -97,4 +97,5 @@ set(BOBBYCAR_BUILDFLAGS -DLEDS_PER_METER=144 -DOLD_NVS # -DFEATURE_DNS_NS + -DFEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_FUNKTIONIERT ) diff --git a/main/webserver.cpp b/main/webserver.cpp index df21c57..d98e657 100644 --- a/main/webserver.cpp +++ b/main/webserver.cpp @@ -10,7 +10,9 @@ httpd_handle_t httpdHandle; void initWebserver() { webserver_lock.construct(); +#ifdef FEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_FUNKTIONIERT webserver_lock->take(portMAX_DELAY); +#endif { httpd_config_t httpConfig HTTPD_DEFAULT_CONFIG(); @@ -51,8 +53,10 @@ void initWebserver() void handleWebserver() { +#ifdef FEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_FUNKTIONIERT webserver_lock->give(); webserver_lock->take(portMAX_DELAY); +#endif } esp_err_t webserver_reboot_handler(httpd_req_t *req)