mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-05-04 07:10:16 +00:00
raw fix
This commit is contained in:
parent
60a8e58cc3
commit
24b68b953b
@ -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);
|
||||
|
@ -23,7 +23,7 @@ namespace PacketTypes {
|
||||
this->packInfo = packInfo;
|
||||
this->id = id;
|
||||
|
||||
if (isAvailable = checkAddress()) {
|
||||
if (checkAddress()) {
|
||||
isAvailable = true;
|
||||
isRawAvailable = true;
|
||||
#ifdef IRDEBUG_INFO
|
||||
|
Loading…
x
Reference in New Issue
Block a user