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
@@ -5,7 +5,7 @@
namespace esphome {
namespace sx1509 {
static const char *TAG = "sx1509_float_channel";
static const char *const TAG = "sx1509_float_channel";
void SX1509FloatOutputChannel::write_state(float state) {
const uint16_t max_duty = 255;
+1 -1
View File
@@ -5,7 +5,7 @@
namespace esphome {
namespace sx1509 {
static const char *TAG = "sx1509";
static const char *const TAG = "sx1509";
void SX1509Component::setup() {
ESP_LOGCONFIG(TAG, "Setting up SX1509Component...");
@@ -5,7 +5,7 @@
namespace esphome {
namespace sx1509 {
static const char *TAG = "sx1509_gpio_pin";
static const char *const TAG = "sx1509_gpio_pin";
void SX1509GPIOPin::setup() {
ESP_LOGD(TAG, "setup pin %d", this->pin_);