mirror of
https://github.com/esphome/esphome.git
synced 2025-09-19 19:52:20 +01:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
namespace esphome {
|
||||
namespace esp32_hall {
|
||||
|
||||
static const char *TAG = "esp32_hall";
|
||||
static const char *const TAG = "esp32_hall";
|
||||
|
||||
void ESP32HallSensor::update() {
|
||||
float value = (hallRead() / 4095.0f) * 10000.0f;
|
||||
|
Reference in New Issue
Block a user