* fix communication to inverters #1198
This commit is contained in:
lumapu 2023-10-01 12:12:21 +02:00
parent 5a01cc86e6
commit dae638f7c6
8 changed files with 15 additions and 21 deletions

View file

@ -232,7 +232,7 @@ class HmRadio : public Radio {
}
void sendPacket(Inverter<> *iv, uint8_t len, bool isRetransmit, bool appendCrc16=true) {
updateCrcs(len, appendCrc16);
updateCrcs(&len, appendCrc16);
// set TX and RX channels
mTxChIdx = (mTxChIdx + 1) % RF_CHANNELS;