diff --git a/tools/esp8266/hmRadio.h b/tools/esp8266/hmRadio.h index 3d54e70b..b5018057 100644 --- a/tools/esp8266/hmRadio.h +++ b/tools/esp8266/hmRadio.h @@ -186,7 +186,8 @@ class HmRadio { } // crc8 over all - mTxBuf[10 + (++cnt)] = Ahoy::crc8(mTxBuf, 10 + cnt); + cnt++; + mTxBuf[10 + cnt] = Ahoy::crc8(mTxBuf, 10 + cnt); sendPacket(invId, mTxBuf, 10 + (++cnt), true);