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