From 2db1ef780568f17b9f23c097fd0a19148b6651fe Mon Sep 17 00:00:00 2001 From: DashyFox Date: Tue, 28 Jan 2025 12:59:53 +0300 Subject: [PATCH] test --- IR_Decoder.h | 2 +- IR_Encoder.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/IR_Decoder.h b/IR_Decoder.h index bff9666..9f616f5 100644 --- a/IR_Decoder.h +++ b/IR_Decoder.h @@ -14,7 +14,7 @@ private: bool isWaitingAcceptSend; uint16_t addrAcceptSendTo; - uint16_t acceptDelay = 75; + uint16_t acceptDelay = IR_ResponseDelay; uint8_t acceptCustomByte; public: diff --git a/IR_Encoder.cpp b/IR_Encoder.cpp index 8a1c3a6..84d2f90 100644 --- a/IR_Encoder.cpp +++ b/IR_Encoder.cpp @@ -247,6 +247,10 @@ void IR_Encoder::setDecoder_isSending() for (uint8_t i = 0; i < decodersCount; i++) { blindDecoders[i]->isPairSending ^= id; + // Serial.print("setDecoder_isSending() id = "); + // Serial.print(id); + // Serial.print(" isPairSending = "); + // Serial.println(blindDecoders[i]->isPairSending); } } } @@ -258,7 +262,7 @@ void IR_Encoder::rawSend(uint8_t *ptr, uint8_t len) // TODO: Обработка повторной отправки return; } - + // Serial.println("START"); setDecoder_isSending(); // noInterrupts(); @@ -314,7 +318,9 @@ void IR_Encoder::_isr() // сброс счетчиков // ... isSending = false; + Serial.println("STOP"); setDecoder_isSending(); + Serial.println(); return; break;