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

@ -27,7 +27,6 @@ class IR_DecoderRaw : virtual public IR_FOX {
friend IR_Encoder;
protected:
PackInfo packInfo;
uint16_t id;
IR_Encoder* encoder; // Указатель на парный передатчик
public:
const uint8_t isrPin; // Пин прерывания
@ -44,8 +43,6 @@ public:
bool available() { if (isAvailable) { isAvailable = false; return true; } else { return false; } };
bool isOverflow() { return isBufferOverflow; }; // Буффер переполнился
bool isReciving() { return isBufferOverflow; }; // Возвращает true, если происходит приём пакета
uint16_t getId() {return id;}
void setId(uint16_t id) {this->id = id;}
//////////////////////////////////////////////////////////////////////////
private: