mirror of
https://github.com/esphome/esphome.git
synced 2025-10-25 21:23:53 +01:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
namespace esphome {
|
||||
namespace rotary_encoder {
|
||||
|
||||
static const char *TAG = "rotary_encoder";
|
||||
static const char *const TAG = "rotary_encoder";
|
||||
|
||||
// based on https://github.com/jkDesignDE/MechInputs/blob/master/QEIx4.cpp
|
||||
static const uint8_t STATE_LUT_MASK = 0x1C; // clears upper counter increment/decrement bits and pin states
|
||||
|
||||
Reference in New Issue
Block a user