From a98afcdeb28fc352603685e4229d9c63319e2340 Mon Sep 17 00:00:00 2001 From: stefan123t Date: Mon, 3 Oct 2022 23:10:05 +0200 Subject: [PATCH] fix ++cnt warning -Wsequence-point --- tools/esp8266/hmRadio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);