mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 10:38:27 +02:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
namespace esphome {
|
||||
namespace tx20 {
|
||||
|
||||
static const char *TAG = "tx20";
|
||||
static const char *const TAG = "tx20";
|
||||
static const uint8_t MAX_BUFFER_SIZE = 41;
|
||||
static const uint16_t TX20_MAX_TIME = MAX_BUFFER_SIZE * 1200 + 5000;
|
||||
static const uint16_t TX20_BIT_TIME = 1200;
|
||||
static const char *DIRECTIONS[] = {"N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE",
|
||||
"S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"};
|
||||
static const char *const DIRECTIONS[] = {"N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE",
|
||||
"S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"};
|
||||
|
||||
void Tx20Component::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up Tx20");
|
||||
|
||||
Reference in New Issue
Block a user