diff --git a/IR_Decoder.cpp b/IR_Decoder.cpp index fa13d11..3d7cff9 100644 --- a/IR_Decoder.cpp +++ b/IR_Decoder.cpp @@ -405,6 +405,8 @@ void IR_Decoder::writeToBuffer(bool bit) { ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// } + + bool IR_Decoder::crcCheck(uint8_t len, crc_t& crc) { bool crcOK = false; diff --git a/IR_Decoder.h b/IR_Decoder.h index fa4cb81..364c38c 100644 --- a/IR_Decoder.h +++ b/IR_Decoder.h @@ -267,37 +267,6 @@ private: /// @param divider Делитель /// @return Результат uint16_t ceil_div(uint16_t val, uint16_t divider); - //uint16_t sma = 0; - void SMA(uint16_t); - - //TODO: Сделать функцию медианы - void medi(uint16_t); - - // class Medi { - // public: - // uint16_t* arr; - // uint8_t size; - // uint8_t center; - - // Medi(uint8_t _size) : size(_size - 1) { - // arr = new uint16_t[size] { 0 }; - // center = size / 2; - // }; - - // void add(uint16_t newVal) { - // _add(newVal, center); - // } - - // void _add(uint16_t newVal, int8_t pos, bool f) { - // if (pos < 0 || pos > size) return; - - // if (newVal < arr[pos]) _add(newVal, pos-1, f); - // if (newVal > arr[pos]) _add(newVal, pos+1, f); - // } - - // ~Medi() { delete arr; } - // }; - #ifdef IRDEBUG inline void errPulse(uint8_t pin, uint8_t count);