mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 15:36:38 +02:00
fix ++cnt warning -Wsequence-point
This commit is contained in:
parent
13aa06e5d9
commit
a98afcdeb2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue