fix multiBlind

This commit is contained in:
2024-02-13 14:33:17 +03:00
parent bfa978394f
commit 1ee3386c31
3 changed files with 13 additions and 18 deletions

View File

@ -62,26 +62,15 @@ void IR_Decoder::tick() {
////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (currentFront.time - prevRise > IR_timeout) { // первый
// if (!currentFront.dir) { // ↓
errorCounter = 0;
isRecive = true;
isPreamb = true;
// preambFrontCounter = preambFronts - 1U;
// } else { // ↑
riseSyncTime = bitTime /* 1100 */;
start_RX();
preambFrontCounter = preambFronts - 1U;
// }
// Serial.println();
// Serial.print("currentFront.time: "); Serial.println(currentFront.time);
// Serial.print("currentFront.dir: "); Serial.println(currentFront.dir ? "UP" : "Down");
// Serial.print("prevRise: "); Serial.println(prevRise);
// Serial.print("preambFrontCounter: "); Serial.println(preambFrontCounter);
// prevRise = currentFront.time;
}
if (preambFrontCounter > 0) { // в преамбуле