i forgot something to uncomment

This commit is contained in:
NP v/d Spek 2024-09-22 18:38:18 +02:00
parent 3bee619049
commit 472f9d61b6

View file

@ -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