mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-27 20:59:37 +00:00
default constructor and operator() for test
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user