From fb870b6b72f50a7c17b00d2fb724f5a5cae8f47e Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Wed, 24 Jul 2024 19:49:05 +0200 Subject: [PATCH] fix clang --- esphome/core/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/gpio.h b/esphome/core/gpio.h index 0492c71792..bbbd8b8dc3 100644 --- a/esphome/core/gpio.h +++ b/esphome/core/gpio.h @@ -78,7 +78,7 @@ class NullPin : public GPIOPin { std::string dump_summary() const override { return {"Not used"}; } }; -static const GPIOPin *const NULL_PIN = new NullPin(); +static GPIOPin *const NULL_PIN = new NullPin(); // NOLINT(cppcoreguidelines-avoid-non-const-global-variables) /// Copy of GPIOPin that is safe to use from ISRs (with no virtual functions) class ISRInternalGPIOPin {