mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[espnow, web_server_idf] Fix IDF 5.5 compile issues (#10068)
This commit is contained in:
		| @@ -49,7 +49,7 @@ class ESPNowPacket { | |||||||
| #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0) | #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0) | ||||||
|   // Constructor for sent data |   // Constructor for sent data | ||||||
|   ESPNowPacket(const esp_now_send_info_t *info, esp_now_send_status_t status) { |   ESPNowPacket(const esp_now_send_info_t *info, esp_now_send_status_t status) { | ||||||
|     this->init_sent_data(info->src_addr, status); |     this->init_sent_data_(info->src_addr, status); | ||||||
|   } |   } | ||||||
| #else | #else | ||||||
|   // Constructor for sent data |   // Constructor for sent data | ||||||
|   | |||||||
| @@ -116,7 +116,7 @@ esp_err_t AsyncWebServer::request_post_handler(httpd_req_t *r) { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   // Handle regular form data |   // Handle regular form data | ||||||
|   if (r->content_len > HTTPD_MAX_REQ_HDR_LEN) { |   if (r->content_len > CONFIG_HTTPD_MAX_REQ_HDR_LEN) { | ||||||
|     ESP_LOGW(TAG, "Request size is to big: %zu", r->content_len); |     ESP_LOGW(TAG, "Request size is to big: %zu", r->content_len); | ||||||
|     httpd_resp_send_err(r, HTTPD_400_BAD_REQUEST, nullptr); |     httpd_resp_send_err(r, HTTPD_400_BAD_REQUEST, nullptr); | ||||||
|     return ESP_FAIL; |     return ESP_FAIL; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user