From 51fc9a993648bc8b7056d8835622bc3d79f413c1 Mon Sep 17 00:00:00 2001 From: DashyFox Date: Wed, 28 Feb 2024 15:58:49 +0300 Subject: [PATCH] rename Raw --- IR_Decoder.h | 2 +- IR_DecoderRaw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IR_Decoder.h b/IR_Decoder.h index 32ecb79..d9d4e98 100644 --- a/IR_Decoder.h +++ b/IR_Decoder.h @@ -22,7 +22,7 @@ public: void tick() { IR_DecoderRaw::tick(); - if (available()) { + if (availableRaw()) { #ifdef IRDEBUG_INFO Serial.println("PARSING RAW DATA"); #endif diff --git a/IR_DecoderRaw.h b/IR_DecoderRaw.h index f8fd474..f9be419 100644 --- a/IR_DecoderRaw.h +++ b/IR_DecoderRaw.h @@ -40,7 +40,7 @@ public: void isr(); // Функция прерывания void tick(); // Обработка приёмника, необходима для работы - bool available() { if (isAvailable) { isAvailable = false; return true; } else { return false; } }; + bool availableRaw() { if (isAvailable) { isAvailable = false; return true; } else { return false; } }; bool isOverflow() { return isBufferOverflow; }; // Буффер переполнился bool isReciving() { return isBufferOverflow; }; // Возвращает true, если происходит приём пакета