debug startRX and m

This commit is contained in:
2024-02-15 16:50:21 +03:00
parent 408fea84ac
commit b517e4e6ad
5 changed files with 88 additions and 67 deletions

View File

@ -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;