moved id to parrent class

This commit is contained in:
2024-02-28 10:03:31 +03:00
parent b7d0179092
commit f6bbd96a4c
4 changed files with 8 additions and 5 deletions

View File

@ -2,7 +2,8 @@
#include "IR_Encoder.h"
IR_DecoderRaw::IR_DecoderRaw(const uint8_t isrPin, uint16_t addr, IR_Encoder* encPair = nullptr) : isrPin(isrPin), id(addr), encoder(encPair) {
IR_DecoderRaw::IR_DecoderRaw(const uint8_t isrPin, uint16_t addr, IR_Encoder* encPair = nullptr) : isrPin(isrPin), encoder(encPair) {
id = addr;
prevRise = prevFall = prevPrevFall = prevPrevRise = 0;
if (encPair != nullptr) {
encPair->decPair = this;