Browse Source

0.7.11

* fix MqTT endless loop #1013
pull/1027/head
lumapu 2 years ago
parent
commit
0be3a23603
  1. 3
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 5
      src/publisher/pubMqttIvData.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes # Development Changes
## 0.7.11 - 2023-07-09
* fix MqTT endless loop #1013
## 0.7.10 - 2023-07-08 ## 0.7.10 - 2023-07-08
* fix MqTT endless loop #1013 * fix MqTT endless loop #1013

2
src/defines.h

@ -13,7 +13,7 @@
//------------------------------------- //-------------------------------------
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 7 #define VERSION_MINOR 7
#define VERSION_PATCH 10 #define VERSION_PATCH 11
//------------------------------------- //-------------------------------------
typedef struct { typedef struct {

5
src/publisher/pubMqttIvData.h

@ -101,9 +101,12 @@ class PubMqttIvData {
mState = SEND_DATA; mState = SEND_DATA;
else if(mSendTotals) else if(mSendTotals)
mState = SEND_TOTALS; mState = SEND_TOTALS;
else else {
mSendList->pop();
mZeroValues = false;
mState = START; mState = START;
} }
}
void stateSend() { void stateSend() {
record_t<> *rec = mIv->getRecordStruct(mCmd); record_t<> *rec = mIv->getRecordStruct(mCmd);

Loading…
Cancel
Save