mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-20 12:26:10 +02:00
fixed communication error #652
reset values is no bound to MQTT any more, setting moved to `inverter` #649 fixed wording on `index.hmtl` #661
This commit is contained in:
parent
75539c5daf
commit
5765e054f3
13 changed files with 146 additions and 111 deletions
|
@ -291,16 +291,17 @@ class HmRadio {
|
|||
mTxBuf[len++] = (crc ) & 0xff;
|
||||
}
|
||||
// crc over all
|
||||
mTxBuf[len+1] = ah::crc8(mTxBuf, len);
|
||||
mTxBuf[len] = ah::crc8(mTxBuf, len);
|
||||
len++;
|
||||
|
||||
if(mSerialDebug) {
|
||||
DPRINT(DBG_INFO, "TX " + String(len+1) + "B Ch" + String(mRfChLst[mTxChIdx]) + " | ");
|
||||
dumpBuf(mTxBuf, len+1);
|
||||
DPRINT(DBG_INFO, "TX " + String(len) + "B Ch" + String(mRfChLst[mTxChIdx]) + " | ");
|
||||
dumpBuf(mTxBuf, len);
|
||||
}
|
||||
|
||||
mNrf24.setChannel(mRfChLst[mTxChIdx]);
|
||||
mNrf24.openWritingPipe(reinterpret_cast<uint8_t*>(&invId));
|
||||
mNrf24.startWrite(mTxBuf, len+1, false); // false = request ACK response
|
||||
mNrf24.startWrite(mTxBuf, len, false); // false = request ACK response
|
||||
|
||||
// switch TX channel for next packet
|
||||
if(++mTxChIdx >= RF_CHANNELS)
|
||||
|
@ -316,7 +317,6 @@ class HmRadio {
|
|||
uint64_t DTU_RADIO_ID;
|
||||
|
||||
uint8_t mRfChLst[RF_CHANNELS];
|
||||
|
||||
uint8_t mTxChIdx;
|
||||
uint8_t mRxChIdx;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue