diff --git a/src/CHANGES.md b/src/CHANGES.md index ba0c5866..e0951253 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -2,6 +2,9 @@ (starting from release version `0.5.66`) +## 0.5.87 +* fix yield total correction as module (inverter input) value #570 + ## 0.5.86 * prevent send devcontrol request during disabled night communication * changed yield total correction as module (inverter input) value #570 diff --git a/src/defines.h b/src/defines.h index b070adf9..f94b4706 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 5 -#define VERSION_PATCH 86 +#define VERSION_PATCH 87 //------------------------------------- typedef struct { diff --git a/src/hm/hmInverter.h b/src/hm/hmInverter.h index 3369c5a8..ae3dc1a4 100644 --- a/src/hm/hmInverter.h +++ b/src/hm/hmInverter.h @@ -256,7 +256,7 @@ class Inverter { // temperature is a signed value! rec->record[pos] = (REC_TYP)((int16_t)val) / (REC_TYP)(div); } else if (FLD_YT == rec->assign[pos].fieldId) { - rec->record[pos] = ((REC_TYP)(val) / (REC_TYP)(div)) + ((REC_TYP)config->yieldCor[rec->assign[pos].ch]); + rec->record[pos] = ((REC_TYP)(val) / (REC_TYP)(div)) + ((REC_TYP)config->yieldCor[rec->assign[pos].ch-1]); } else { if ((REC_TYP)(div) > 1) rec->record[pos] = (REC_TYP)(val) / (REC_TYP)(div);