mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-27 20:59:37 +00:00
debug startRX and m
This commit is contained in:
@ -31,6 +31,7 @@ IR_Encoder::~IR_Encoder() {
|
||||
};
|
||||
|
||||
void IR_Encoder::sendData(uint16_t addrTo, uint8_t* data, uint8_t len, bool needAccept = false) {
|
||||
if (len > bytePerPack) { return; }
|
||||
constexpr uint8_t dataStart = msgBytes + addrBytes + addrBytes;
|
||||
memset(sendBuffer, 0x00, dataByteSizeMax);
|
||||
uint8_t packSize = msgBytes + addrBytes + addrBytes + len + crcBytes;
|
||||
@ -122,14 +123,10 @@ void IR_Encoder::rawSend(uint8_t* ptr, uint8_t len) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
sendLen = len;
|
||||
|
||||
setDecoder_isSending();
|
||||
|
||||
|
||||
cli();
|
||||
sendLen = len;
|
||||
toggleCounter = preambToggle; // Первая генерация для первого signal
|
||||
|
||||
dataBitCounter = bitPerByte - 1;
|
||||
|
Reference in New Issue
Block a user