This commit is contained in:
DashyFox 2024-02-29 14:28:23 +03:00
parent 60a8e58cc3
commit 24b68b953b
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,6 @@ public:
#ifdef IRDEBUG_INFO
Serial.println("PARSING RAW DATA");
#endif
gotRaw.set(&packInfo, id);
isWaitingAcceptSend = false;
switch (packInfo.buffer[0] >> 5 & IR_MASK_MSG_TYPE) {
case IR_MSG_DATA_ACCEPT:
@ -54,6 +53,7 @@ public:
acceptCustomByte = crc8(gotData.getDataPrt(), 0, gotData.getDataSize(), poly1);
if (addrAcceptSendTo && addrAcceptSendTo < IR_Broadcast) isWaitingAcceptSend = true;
}
gotRaw.set(&packInfo, id);
}
if (isWaitingAcceptSend && millis() - acceptSendTimer > 75) {
encoder->sendAccept(addrAcceptSendTo, acceptCustomByte);

View File

@ -23,7 +23,7 @@ namespace PacketTypes {
this->packInfo = packInfo;
this->id = id;
if (isAvailable = checkAddress()) {
if (checkAddress()) {
isAvailable = true;
isRawAvailable = true;
#ifdef IRDEBUG_INFO