fix virtual method

This commit is contained in:
NP v/d Spek 2024-10-19 12:00:35 +02:00
parent 0a7cb08e6f
commit 090bfc9d3f

View file

@ -124,7 +124,8 @@ class ESPNowProtocol : public Parented<ESPNowComponent> {
virtual uint32_t get_protocol_id() = 0; virtual uint32_t get_protocol_id() = 0;
virtual std::string get_protocol_name() = 0; virtual std::string get_protocol_name() = 0;
virtual uint8_t get_next_sequents(uint64_t peer = 0, uint32_t protocol = 0) { uint8_t get_next_sequents() { this->get_next_sequents(0, 0); }
virtual uint8_t get_next_sequents(uint64_t peer, uint32_t protocol) {
if (this->next_sequents_ == 255) { if (this->next_sequents_ == 255) {
this->next_sequents_ = 0; this->next_sequents_ = 0;
} else { } else {