* fix #892 `zeroYieldDay` loop was not applied to all channels
This commit is contained in:
lumapu 2023-04-19 21:56:25 +02:00
parent 12a3d503c8
commit b6531180df
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,8 @@
# Development Changes # Development Changes
## 0.6.8 - 2023-04-19
* fix #892 `zeroYieldDay` loop was not applied to all channels
## 0.6.7 - 2023-04-13 ## 0.6.7 - 2023-04-13
* merge PR #883, improved store of settings and javascript, thx @tastendruecker123 * merge PR #883, improved store of settings and javascript, thx @tastendruecker123
* support `.` and `,` as floating point seperator in setup #881 * support `.` and `,` as floating point seperator in setup #881

View file

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

View file

@ -74,8 +74,8 @@ class HmPayload {
DPRINTLN(DBG_DEBUG, F("zeroYieldDay")); DPRINTLN(DBG_DEBUG, F("zeroYieldDay"));
record_t<> *rec = iv->getRecordStruct(RealTimeRunData_Debug); record_t<> *rec = iv->getRecordStruct(RealTimeRunData_Debug);
uint8_t pos; uint8_t pos;
for(uint8_t ch = 0; ch < iv->channels; ch++) { for(uint8_t ch = 0; ch <= iv->channels; ch++) {
pos = iv->getPosByChFld(CH0, FLD_YD, rec); pos = iv->getPosByChFld(ch, FLD_YD, rec);
iv->setValue(pos, rec, 0.0f); iv->setValue(pos, rec, 0.0f);
} }
} }