mirror of
https://github.com/esphome/esphome.git
synced 2025-08-07 02:47:47 +00:00
cleanup
This commit is contained in:
parent
1927f92358
commit
ed2c3e626b
@ -49,9 +49,11 @@ void AsyncWebServer::begin() {
|
|||||||
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
|
httpd_config_t config = HTTPD_DEFAULT_CONFIG();
|
||||||
config.server_port = this->port_;
|
config.server_port = this->port_;
|
||||||
config.uri_match_fn = [](const char * /*unused*/, const char * /*unused*/, size_t /*unused*/) { return true; };
|
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
|
// Increase stack size for OTA operations - esp_ota_end() needs more stack
|
||||||
// during image validation than the default 4096 bytes
|
// 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) {
|
if (httpd_start(&this->server_, &config) == ESP_OK) {
|
||||||
const httpd_uri_t handler_get = {
|
const httpd_uri_t handler_get = {
|
||||||
.uri = "",
|
.uri = "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user