default constructor and operator() for test

This commit is contained in:
2024-08-28 18:00:18 +03:00
parent c66d47e464
commit 784365181e
6 changed files with 16 additions and 7 deletions

View File

@ -6,12 +6,15 @@ std::list<IR_Decoder*>& IR_Decoder::get_dec_list() // определение ф
return dec_list; // возвращается ссылка на переменную
}
IR_Decoder::IR_Decoder(){};
IR_Decoder::IR_Decoder(const uint8_t pin, uint16_t addr, IR_Encoder *encPair)
: IR_DecoderRaw(pin, addr, encPair)
{
get_dec_list().push_back(this);
};
void IR_Decoder::operator()() { isr(); }
IR_Decoder::~IR_Decoder()
{
IR_Decoder::get_dec_list().remove(this);