mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(http_server): Removed the build failure due to unused variables
There were build failure due the unused variable last_error when ESP_HTTPS_SERVER_EVENTS and HTTPD_ENABLE_EVENTS are disabled
This commit is contained in:
committed by
Hrushikesh Bhosale
parent
6036ec961d
commit
9bb92507ac
@@ -23,6 +23,10 @@ extern "C" {
|
||||
|
||||
#define ESP_HTTPD_DEF_CTRL_PORT (32768) /*!< HTTP Server control socket port*/
|
||||
|
||||
#if CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
|
||||
ESP_EVENT_DECLARE_BASE(ESP_HTTP_SERVER_EVENT);
|
||||
#endif // CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
|
||||
|
||||
/**
|
||||
* @brief HTTP Server events id
|
||||
*/
|
||||
@@ -38,15 +42,11 @@ typedef enum {
|
||||
HTTP_SERVER_EVENT_STOP, /*!< This event occurs when HTTP Server is stopped */
|
||||
} esp_http_server_event_id_t;
|
||||
|
||||
#if CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
|
||||
ESP_EVENT_DECLARE_BASE(ESP_HTTP_SERVER_EVENT);
|
||||
|
||||
/** Argument structure for HTTP_SERVER_EVENT_ON_DATA and HTTP_SERVER_EVENT_SENT_DATA event */
|
||||
typedef struct {
|
||||
int fd; /*!< Session socket file descriptor */
|
||||
int data_len; /*!< Data length */
|
||||
} esp_http_server_event_data;
|
||||
#endif // CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
|
||||
|
||||
/*
|
||||
note: esp_https_server.h includes a customized copy of this
|
||||
|
||||
Reference in New Issue
Block a user