mirror of
https://github.com/esphome/esphome.git
synced 2025-09-18 19:22:22 +01:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -8,7 +8,7 @@ ADC_MODE(ADC_VCC)
|
||||
namespace esphome {
|
||||
namespace adc {
|
||||
|
||||
static const char *TAG = "adc";
|
||||
static const char *const TAG = "adc";
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
void ADCSensor::set_attenuation(adc_attenuation_t attenuation) { this->attenuation_ = attenuation; }
|
||||
|
Reference in New Issue
Block a user