This commit is contained in:
DashyFox 2024-02-15 17:01:53 +03:00
parent b517e4e6ad
commit 4a8195e561
2 changed files with 2 additions and 31 deletions

View File

@ -405,6 +405,8 @@ void IR_Decoder::writeToBuffer(bool bit) {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
} }
bool IR_Decoder::crcCheck(uint8_t len, crc_t& crc) { bool IR_Decoder::crcCheck(uint8_t len, crc_t& crc) {
bool crcOK = false; bool crcOK = false;

View File

@ -267,37 +267,6 @@ private:
/// @param divider Делитель /// @param divider Делитель
/// @return Результат /// @return Результат
uint16_t ceil_div(uint16_t val, uint16_t divider); 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 #ifdef IRDEBUG
inline void errPulse(uint8_t pin, uint8_t count); inline void errPulse(uint8_t pin, uint8_t count);