mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-05-04 07:10:16 +00:00
Clean
This commit is contained in:
parent
b517e4e6ad
commit
4a8195e561
@ -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;
|
||||||
|
|
||||||
|
31
IR_Decoder.h
31
IR_Decoder.h
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user