Avoid non-const globals and enable clang-tidy check (#1892)

This commit is contained in:
Stefan Agner
2021-06-10 22:19:44 +02:00
committed by GitHub
parent 360effcb72
commit 501f88ca86
376 changed files with 466 additions and 468 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
namespace esphome {
namespace e131 {
static const char *TAG = "e131";
static const char *const TAG = "e131";
static const int PORT = 5568;
E131Component::E131Component() {}
@@ -5,7 +5,7 @@
namespace esphome {
namespace e131 {
static const char *TAG = "e131_addressable_light_effect";
static const char *const TAG = "e131_addressable_light_effect";
static const int MAX_DATA_SIZE = (sizeof(E131Packet::values) - 1);
E131AddressableLightEffect::E131AddressableLightEffect(const std::string &name) : AddressableLightEffect(name) {}
+1 -1
View File
@@ -8,7 +8,7 @@
namespace esphome {
namespace e131 {
static const char *TAG = "e131";
static const char *const TAG = "e131";
static const uint8_t ACN_ID[12] = {0x41, 0x53, 0x43, 0x2d, 0x45, 0x31, 0x2e, 0x31, 0x37, 0x00, 0x00, 0x00};
static const uint32_t VECTOR_ROOT = 4;