From e7efda470992246de3f63b2b95b0f7297c2d7a5d Mon Sep 17 00:00:00 2001 From: Laukik Hase Date: Thu, 12 Jan 2023 16:16:45 +0530 Subject: [PATCH] esp_local_ctrl: Fix header inclusion - Included `sdkconfig.h` and HTTP/S server based headers explicitly --- components/esp_local_ctrl/include/esp_local_ctrl.h | 6 ++++++ .../protocols/esp_local_ctrl/main/esp_local_ctrl_service.c | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/esp_local_ctrl/include/esp_local_ctrl.h b/components/esp_local_ctrl/include/esp_local_ctrl.h index f05e6473f4..2e9a56a0d3 100644 --- a/components/esp_local_ctrl/include/esp_local_ctrl.h +++ b/components/esp_local_ctrl/include/esp_local_ctrl.h @@ -10,6 +10,12 @@ extern "C" { #endif +#include +#ifdef CONFIG_ESP_HTTPS_SERVER_ENABLE +#include +#else +#include +#endif #include /** diff --git a/examples/protocols/esp_local_ctrl/main/esp_local_ctrl_service.c b/examples/protocols/esp_local_ctrl/main/esp_local_ctrl_service.c index 921dfb5438..6b38202eff 100644 --- a/examples/protocols/esp_local_ctrl/main/esp_local_ctrl_service.c +++ b/examples/protocols/esp_local_ctrl/main/esp_local_ctrl_service.c @@ -20,11 +20,7 @@ #include #include #include -#ifdef CONFIG_ESP_HTTPS_SERVER_ENABLE -#include -#else -#include -#endif + static const char *TAG = "control"; #define SERVICE_NAME "my_esp_ctrl_device"