1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-03 10:32:21 +01:00
This commit is contained in:
J. Nick Koston
2025-06-29 19:53:29 -05:00
parent 1927f92358
commit ed2c3e626b

View File

@@ -49,9 +49,11 @@ void AsyncWebServer::begin() {
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
config.server_port = this->port_;
config.uri_match_fn = [](const char * /*unused*/, const char * /*unused*/, size_t /*unused*/) { return true; };
#ifdef USE_WEBSERVER_OTA
// Increase stack size for OTA operations - esp_ota_end() needs more stack
// during image validation than the default 4096 bytes
config.stack_size = 6144;
config.stack_size = 4608;
#endif
if (httpd_start(&this->server_, &config) == ESP_OK) {
const httpd_uri_t handler_get = {
.uri = "",