isReceive type

This commit is contained in:
2025-05-23 11:43:51 +03:00
parent 021e1e290d
commit bc9563fbb5
4 changed files with 21 additions and 4 deletions

View File

@ -61,6 +61,7 @@ void IR_Decoder::tick()
void IR_Decoder::_tick()
{
IR_DecoderRaw::tick();
if (availableRaw())
{
#ifdef IRDEBUG_INFO
@ -102,4 +103,8 @@ void IR_Decoder::_tick()
encoder->sendAccept(addrAcceptSendTo, acceptCustomByte);
isWaitingAcceptSend = false;
}
}
}
bool IR_Decoder::isReceive(uint8_t type) {
return (msgTypeReceive & 0b11111000) && ((msgTypeReceive & IR_MASK_MSG_TYPE) == type);
}