mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 13:26:10 +02:00
started implementation of MI inverters (setup.html, own processing MiPayload.h
)
This commit is contained in:
parent
67ff0209e8
commit
75539c5daf
17 changed files with 408 additions and 66 deletions
|
@ -291,16 +291,16 @@ class HmRadio {
|
|||
mTxBuf[len++] = (crc ) & 0xff;
|
||||
}
|
||||
// crc over all
|
||||
mTxBuf[len++] = ah::crc8(mTxBuf, len);
|
||||
mTxBuf[len+1] = ah::crc8(mTxBuf, len);
|
||||
|
||||
if(mSerialDebug) {
|
||||
DPRINT(DBG_INFO, "TX " + String(len) + "B Ch" + String(mRfChLst[mTxChIdx]) + " | ");
|
||||
dumpBuf(mTxBuf, len);
|
||||
DPRINT(DBG_INFO, "TX " + String(len+1) + "B Ch" + String(mRfChLst[mTxChIdx]) + " | ");
|
||||
dumpBuf(mTxBuf, len+1);
|
||||
}
|
||||
|
||||
mNrf24.setChannel(mRfChLst[mTxChIdx]);
|
||||
mNrf24.openWritingPipe(reinterpret_cast<uint8_t*>(&invId));
|
||||
mNrf24.startWrite(mTxBuf, len, false); // false = request ACK response
|
||||
mNrf24.startWrite(mTxBuf, len+1, false); // false = request ACK response
|
||||
|
||||
// switch TX channel for next packet
|
||||
if(++mTxChIdx >= RF_CHANNELS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue