little opti

This commit is contained in:
2024-02-28 13:53:27 +03:00
parent 4fd4983bb9
commit 434e1aaa90
4 changed files with 8 additions and 8 deletions

View File

@ -103,7 +103,8 @@ void IR_DecoderRaw::tick() {
}
}
if (preambFrontCounter > 0) { // в преамбуле
if (preambFrontCounter) { // в преамбуле
uint32_t risePeriod;
risePeriod = currentFront.time - prevRise;
if (currentFront.dir && risePeriod < IR_timeout) { // __/``` ↑ и мы в внутри пакета