mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
i forgot something to uncomment
This commit is contained in:
parent
3bee619049
commit
472f9d61b6
1 changed files with 3 additions and 7 deletions
|
@ -317,13 +317,11 @@ template<typename... Ts> class DelPeerAction : public Action<Ts...>, public Pare
|
|||
TemplatableValue<uint64_t, Ts...> mac_{};
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
class ESPNowSentTrigger : public Trigger<ESPNowPacket *, bool> {
|
||||
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<ESPNowPacket *> {
|
|||
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<ESPNowPacket *> {
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue