From 3557c847b2a25a483e52aa269dcca3c1b5b4e9d1 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 6 Aug 2025 19:12:43 +0200 Subject: [PATCH] Remove TAG from .h --- components/tx_ultimate_easy/tx_ultimate_easy_light.h | 7 ++++--- components/tx_ultimate_easy/tx_ultimate_easy_touch.h | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/tx_ultimate_easy/tx_ultimate_easy_light.h b/components/tx_ultimate_easy/tx_ultimate_easy_light.h index 8fd5d1c..8e3da9c 100644 --- a/components/tx_ultimate_easy/tx_ultimate_easy_light.h +++ b/components/tx_ultimate_easy/tx_ultimate_easy_light.h @@ -2,6 +2,8 @@ #pragma once +#ifdef TX_ULTIMATE_EASY_CORE_HW_LEDS + #include "esphome/core/automation.h" #include "esphome/core/component.h" #include "esphome/components/uart/uart.h" @@ -13,9 +15,6 @@ namespace esphome { namespace tx_ultimate_easy { - // Log tag - static const char *TAG = "tx_ultimate_easy.light"; - /** * @brief Light attributes structure for storing color and brightness data. * @@ -113,3 +112,5 @@ namespace esphome { } // namespace tx_ultimate_easy } // namespace esphome + +#endif // TX_ULTIMATE_EASY_CORE_HW_LEDS diff --git a/components/tx_ultimate_easy/tx_ultimate_easy_touch.h b/components/tx_ultimate_easy/tx_ultimate_easy_touch.h index 5062f11..867d0ec 100644 --- a/components/tx_ultimate_easy/tx_ultimate_easy_touch.h +++ b/components/tx_ultimate_easy/tx_ultimate_easy_touch.h @@ -2,6 +2,8 @@ #pragma once +#ifdef TX_ULTIMATE_EASY_CORE_HW_TOUCH + #include "esphome/core/automation.h" #include "esphome/core/component.h" #include "esphome/components/uart/uart.h" @@ -31,9 +33,6 @@ namespace esphome { constexpr int VALID_DATA_BYTE_2 = 0x01; constexpr int VALID_DATA_BYTE_3 = 0x02; - // Log tag - static const char *TAG = "tx_ultimate_easy.touch"; - struct TouchPoint { uint8_t button = 0; int8_t x = -1; @@ -84,3 +83,5 @@ namespace esphome { } // namespace tx_ultimate_easy } // namespace esphome + +#endif // TX_ULTIMATE_EASY_CORE_HW_TOUCH