Fixed webserver

This commit is contained in:
CommanderRedYT
2021-12-08 02:03:41 +01:00
parent cf498db01e
commit f548a14b5d
2 changed files with 5 additions and 0 deletions

View File

@ -97,4 +97,5 @@ set(BOBBYCAR_BUILDFLAGS
-DLEDS_PER_METER=144
-DOLD_NVS
# -DFEATURE_DNS_NS
-DFEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_FUNKTIONIERT
)

View File

@ -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)