mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
fix syncBit
This commit is contained in:
@ -27,6 +27,7 @@ public:
|
||||
|
||||
template<typename T>
|
||||
void sendData(uint16_t addrTo, T& data, bool needAccept = false);
|
||||
void sendData(uint16_t addrTo, uint8_t* data, uint8_t len, bool needAccept = false);
|
||||
void sendACK(uint16_t addrTo, uint8_t addInfo = 0, bool forAll = false);
|
||||
void sendRequest(uint16_t addrTo, uint8_t addInfo = 0);
|
||||
void rawSend(uint8_t* ptr, uint8_t len);
|
||||
@ -46,8 +47,8 @@ private:
|
||||
enum SignalPart : uint8_t {
|
||||
noSignal = 0,
|
||||
preamb = 1,
|
||||
data = 2,
|
||||
sync = 3
|
||||
data = 2,
|
||||
sync = 3
|
||||
};
|
||||
|
||||
uint8_t sendLen;
|
||||
@ -87,7 +88,6 @@ private:
|
||||
volatile SignalPart signal;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@ -102,3 +102,4 @@ void IR_Encoder::sendData(uint16_t addrTo, T& data, bool needAccept = false) { /
|
||||
|
||||
_sendData(addrTo, data, len, msgType);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user