non virtual

This commit is contained in:
2024-02-27 10:28:20 +03:00
parent 1f62eb8c0a
commit 4d92acf15b
6 changed files with 411 additions and 311 deletions

View File

@ -69,7 +69,7 @@ void IR_DecoderRaw::firstRX() {
void IR_DecoderRaw::listenStart() {
if (isRecive && ((micros() - prevRise) > IR_timeout * 2)) {
Serial.print("\nlis>");
// Serial.print("\nlis>");
isRecive = false;
firstRX();
}
@ -99,7 +99,7 @@ void IR_DecoderRaw::tick() {
#endif
isRecive = true;
isWrongPack = false;
}
}
}
if (preambFrontCounter > 0) { // в преамбуле
@ -357,11 +357,15 @@ void IR_DecoderRaw::writeToBuffer(bool bit) {
if (!isAvailable && isData && !isWrongPack) {
if (i_dataBuffer == 8 * msgBytes) {// Ппервый байт
packSize = dataBuffer[0] & IR_MASK_MSG_INFO;
#ifdef IRDEBUG_INFO
Serial.print(" ["); Serial.print(packSize); Serial.print("] ");
#endif
}
if (packSize && (i_dataBuffer == packSize * bitPerByte)) { // Конец
#ifdef IRDEBUG_INFO
Serial.print(" END DATA ");
#endif
packInfo.buffer = dataBuffer;
packInfo.crc = crcValue;