From 472f9d61b64a36efeaa2198d1ab5773fa6ba0ed5 Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Sun, 22 Sep 2024 18:38:18 +0200 Subject: [PATCH] i forgot something to uncomment --- esphome/components/espnow/espnow.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/esphome/components/espnow/espnow.h b/esphome/components/espnow/espnow.h index 4b06870c2e..7599ac889b 100644 --- a/esphome/components/espnow/espnow.h +++ b/esphome/components/espnow/espnow.h @@ -317,13 +317,11 @@ template class DelPeerAction : public Action, public Pare TemplatableValue mac_{}; }; -/* - class ESPNowSentTrigger : public Trigger { public: explicit ESPNowSentTrigger(ESPNowComponent *parent) { parent->get_default_protocol()->add_on_sent_callback( - [this](ESPNowPacket * packet, bool status) { this->trigger(std::move(packet), status); }); + [this](ESPNowPacket *packet, bool status) { this->trigger(std::move(packet), status); }); } }; @@ -331,7 +329,7 @@ class ESPNowReceiveTrigger : public Trigger { public: explicit ESPNowReceiveTrigger(ESPNowComponent *parent) { parent->get_default_protocol()->add_on_receive_callback( - [this](ESPNowPacket * packet) { this->trigger(std::move(packet)); }); + [this](ESPNowPacket *packet) { this->trigger(std::move(packet)); }); } }; @@ -339,12 +337,10 @@ class ESPNowNewPeerTrigger : public Trigger { public: explicit ESPNowNewPeerTrigger(ESPNowComponent *parent) { parent->get_default_protocol()->add_on_peer_callback( - [this](ESPNowPacket * packet) { this->trigger(std::move(packet)); }); + [this](ESPNowPacket *packet) { this->trigger(std::move(packet)); }); } }; -*/ - extern ESPNowComponent *global_esp_now; } // namespace espnow