mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
clean
This commit is contained in:
26
IR_Decoder.h
26
IR_Decoder.h
@ -51,19 +51,7 @@ public:
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
struct ErrorsStruct {
|
||||
uint8_t lowSignal;
|
||||
uint8_t highSignal;
|
||||
uint8_t other;
|
||||
|
||||
void reset() {
|
||||
lowSignal = 0;
|
||||
highSignal = 0;
|
||||
other = 0;
|
||||
}
|
||||
uint16_t all() { return lowSignal + highSignal + other; }
|
||||
|
||||
} errors;
|
||||
|
||||
|
||||
public:
|
||||
class InputData : protected IR_FOX {
|
||||
@ -121,12 +109,12 @@ public:
|
||||
uint8_t dataRawSize() { return _dataRawSize; };
|
||||
uint8_t* dataRaw() { return _data; };
|
||||
bool isNeedAccept() { return ((_msgType >> 5) & IR_MASK_MSG_TYPE) == IR_MSG_DATA_ACCEPT; };
|
||||
String printRawData(uint8_t mode = 10) {
|
||||
return printBytes(dataRaw(), dataRawSize(), mode);
|
||||
}
|
||||
String printData(uint8_t mode = 10) {
|
||||
return printBytes(data(), dataSize(), mode);
|
||||
}
|
||||
// String printRawData(uint8_t mode = 10) {
|
||||
// return printBytes(dataRaw(), dataRawSize(), mode);
|
||||
// }
|
||||
// String printData(uint8_t mode = 10) {
|
||||
// return printBytes(data(), dataSize(), mode);
|
||||
// }
|
||||
~Data() {};
|
||||
private:
|
||||
void ini() override {
|
||||
|
Reference in New Issue
Block a user