diff --git a/components/tx_ultimate_easy/tx_ultimate_easy_light.cpp b/components/tx_ultimate_easy/tx_ultimate_easy_light.cpp index cd7a290..ea1e61a 100644 --- a/components/tx_ultimate_easy/tx_ultimate_easy_light.cpp +++ b/components/tx_ultimate_easy/tx_ultimate_easy_light.cpp @@ -1,5 +1,7 @@ // tx_ultimate_easy_light.cpp +#ifdef TX_ULTIMATE_EASY_CORE_HW_LEDS + #include "esphome/core/log.h" #include "tx_ultimate_easy_light.h" #include @@ -8,6 +10,9 @@ namespace esphome { namespace tx_ultimate_easy { + // Log tag + static const char *TAG = "tx_ultimate_easy.light"; + // Constant definitions const LightAttributes LIGHT_ATTRS_DEFAULT = {100, 255, 255, 255}; const uint32_t LIGHT_ATTRS_DEFAULT_PACKED = 0x64FFFFFF; @@ -49,3 +54,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.cpp b/components/tx_ultimate_easy/tx_ultimate_easy_touch.cpp index 92ad4cd..7a4ce70 100644 --- a/components/tx_ultimate_easy/tx_ultimate_easy_touch.cpp +++ b/components/tx_ultimate_easy/tx_ultimate_easy_touch.cpp @@ -1,5 +1,7 @@ // tx_ultimate_easy_touch.cpp +#ifdef TX_ULTIMATE_EASY_CORE_HW_TOUCH + #include "esphome/core/log.h" #include "tx_ultimate_easy_touch.h" #include @@ -8,6 +10,9 @@ namespace esphome { namespace tx_ultimate_easy { + // Log tag + static const char *TAG = "tx_ultimate_easy.touch"; + void TxUltimateEasy::setup() { ESP_LOGI(TAG, "TX Ultimate Easy is initialized"); } @@ -225,3 +230,5 @@ namespace esphome { } // namespace tx_ultimate_easy } // namespace esphome + +#endif // TX_ULTIMATE_EASY_CORE_HW_TOUCH