Move tag to .cpp
This commit is contained in:
@@ -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 <cinttypes>
|
||||
@@ -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
|
||||
|
||||
@@ -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 <cinttypes>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user