fix ++cnt warning -Wsequence-point

This commit is contained in:
stefan123t 2022-10-03 23:10:05 +02:00
parent 13aa06e5d9
commit a98afcdeb2

View file

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