mirror of
https://github.com/esphome/esphome.git
synced 2025-10-04 02:52:22 +01:00
Activate owning-memory clang-tidy check (#1891)
* Activate owning-memory clang-tidy check * Lint * Lint * Fix issue with new NfcTag constructor * Update pointers for number and select * Add back the NOLINT to display buffer * Fix merge * DSMR fixes * Nextion fixes * Fix pipsolar * Fix lwip socket * Format * Change socket fix Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "wled_light_effect.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#include <WiFi.h>
|
||||
@@ -48,7 +49,7 @@ void WLEDLightEffect::blank_all_leds_(light::AddressableLight &it) {
|
||||
void WLEDLightEffect::apply(light::AddressableLight &it, const Color ¤t_color) {
|
||||
// Init UDP lazily
|
||||
if (!udp_) {
|
||||
udp_.reset(new WiFiUDP());
|
||||
udp_ = make_unique<WiFiUDP>();
|
||||
|
||||
if (!udp_->begin(port_)) {
|
||||
ESP_LOGW(TAG, "Cannot bind WLEDLightEffect to %d.", port_);
|
||||
|
Reference in New Issue
Block a user