From 167dcef1e641c2b669b2a9c35a4f6a5b81fa2b33 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Tue, 24 Sep 2024 16:42:37 +0200 Subject: [PATCH] remove std:move --- esphome/components/espnow/espnow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/espnow/espnow.cpp b/esphome/components/espnow/espnow.cpp index 680ff6023e..ec5da40929 100644 --- a/esphome/components/espnow/espnow.cpp +++ b/esphome/components/espnow/espnow.cpp @@ -309,7 +309,7 @@ void ESPNowComponent::runner() { if (!esp_now_is_peer_exist(mac)) { if (!this->auto_add_peer_) { - this->defer([this, packet]() { this->on_new_peer_(std::move(packet)); }); + this->defer([this, packet]() { this->on_new_peer_(packet); }); continue; } else { this->add_peer(packet->peer);