Browse Source

0.7.7

* attempt to fix MqTT `YieldDay` in `TotalValues` #927
pull/1027/head
lumapu 1 year ago
parent
commit
45e02b94c3
  1. 3
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 6
      src/publisher/pubMqttIvData.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes
## 0.7.7 - 2023-07-03
* attempt to fix MqTT `YieldDay` in `TotalValues` #927
## 0.7.6 - 2023-06-17
* fix display of hidden SSID checkbox
* changed yield correction data type to `double`, now decimal places are supported

2
src/defines.h

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

6
src/publisher/pubMqttIvData.h

@ -100,7 +100,7 @@ class PubMqttIvData {
if(found) {
mState = SEND_DATA;
if(!mIv->isAvailable(*mUtcTimestamp))
mSendTotals = false; // avoid send total values on not producing, because the sum of values is not built
mSendTotals = false; // avoid send total values on no availability, because the sum of values is not built
}
else if(mSendTotals)
mState = SEND_TOTALS;
@ -125,12 +125,12 @@ class PubMqttIvData {
if(FLD_YT == rec->assign[mPos].fieldId)
retained = true;
else if(FLD_YD == rec->assign[mPos].fieldId) {
if(!mZeroValues) {
/*if(!mZeroValues) {
if ((rec->assign[mPos].ch == CH0) && (!mIv->isProducing(*mUtcTimestamp))) { // avoids returns to 0 on restart
mPos++;
return;
}
}
}*/
retained = true;
}

Loading…
Cancel
Save