mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-13 08:03:32 +02:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
namespace esphome {
|
||||
namespace servo {
|
||||
|
||||
static const char *TAG = "servo";
|
||||
static const char *const TAG = "servo";
|
||||
|
||||
uint32_t global_servo_id = 1911044085ULL;
|
||||
uint32_t global_servo_id = 1911044085ULL; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||
|
||||
void Servo::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Servo:");
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
namespace esphome {
|
||||
namespace servo {
|
||||
|
||||
extern uint32_t global_servo_id;
|
||||
extern uint32_t global_servo_id; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||
|
||||
class Servo : public Component {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user