Browse Source

fix ++cnt warning -Wsequence-point

pull/328/head
stefan123t 2 years ago
parent
commit
a98afcdeb2
  1. 3
      tools/esp8266/hmRadio.h

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

Loading…
Cancel
Save