From 5cc4555bac25155432b52a77d175076eaf4beb2e Mon Sep 17 00:00:00 2001 From: DashyFox Date: Mon, 22 Apr 2024 11:26:11 +0300 Subject: [PATCH] upd --- IR_DecoderRaw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IR_DecoderRaw.cpp b/IR_DecoderRaw.cpp index 6fdae21..7221c5c 100644 --- a/IR_DecoderRaw.cpp +++ b/IR_DecoderRaw.cpp @@ -112,7 +112,7 @@ void IR_DecoderRaw::tick() if (currentFront.dir) { // Если __/``` ↑ - if (currentFront.time - prevRise > riseTimeMax / 2 || highCount || lowCount) + if (currentFront.time - prevRise > riseTimeMax / 4 || highCount || lowCount) { // комплексный фикс рваной единицы risePeriod = currentFront.time - prevRise; highTime = currentFront.time - prevFall; @@ -537,7 +537,7 @@ void IR_DecoderRaw::writeToBuffer(bool bit) isRecive = false; isAvailable = crcCheck(packSize - crcBytes, crcValue); - + #ifdef BRUTEFORCE_CHECK if (!isAvailable) // Исправление первого бита // Очень большая затычка... for (size_t i = 0; i < min(packSize - crcBytes*2, dataByteSizeMax); ++i)