From 80f351a5b6d099629961b0e9ded12bba60d6cbe4 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Wed, 14 Aug 2024 17:47:45 +0200 Subject: [PATCH] fix clang-tidy --- esphome/core/defines.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/esphome/core/defines.h b/esphome/core/defines.h index cdca592e9a..f2d4e0d7f5 100644 --- a/esphome/core/defines.h +++ b/esphome/core/defines.h @@ -16,9 +16,6 @@ // Feature flags #define USE_ALARM_CONTROL_PANEL -#define USE_API -#define USE_API_NOISE -#define USE_API_PLAINTEXT #define USE_BINARY_SENSOR #define USE_BUTTON #define USE_CLIMATE @@ -52,11 +49,6 @@ #define USE_MEDIA_PLAYER #define USE_NEXTION_TFT_UPLOAD #define USE_NUMBER -#define USE_ONLINE_IMAGE_PNG_SUPPORT -#define USE_OTA -#define USE_OTA_PASSWORD -#define USE_OTA_STATE_CALLBACK -#define USE_OTA_VERSION 1 #define USE_OUTPUT #define USE_POWER_SUPPLY #define USE_QR_CODE @@ -72,12 +64,21 @@ #define USE_UPDATE #define USE_VALVE -// Things which do not work for zephyr +// Feature flags which do not work for zephyr #ifndef USE_ZEPHYR +#define USE_API +#define USE_API_NOISE +#define USE_API_PLAINTEXT #define USE_MQTT #define USE_NETWORK +#define USE_ONLINE_IMAGE_PNG_SUPPORT +#define USE_OTA +#define USE_OTA_PASSWORD +#define USE_OTA_STATE_CALLBACK +#define USE_OTA_VERSION 1 #define USE_WIFI #define USE_WIFI_AP +#define USE_WIREGUARD #endif // Arduino-specific feature flags @@ -92,6 +93,7 @@ // IDF-specific feature flags #ifdef USE_ESP_IDF #define USE_MQTT_IDF_ENQUEUE +#define USE_CAPTIVE_PORTAL #endif // ESP32-specific feature flags