From 4831945d3a879d83f009c4ffba912ae573878d2a Mon Sep 17 00:00:00 2001 From: lumapu Date: Mon, 14 Aug 2023 01:40:16 +0200 Subject: [PATCH] 0.7.31 fix zeroIvValues --- src/app.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app.cpp b/src/app.cpp index c7aaf63a..4e8af53e 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -484,6 +484,12 @@ void app:: zeroIvValues(bool checkAvail, bool skipYieldDay) { pos = iv->getPosByChFld(ch, fld, rec); iv->setValue(pos, rec, 0.0f); } + // zero max power + if(!skipYieldDay) { + pos = iv->getPosByChFld(ch, FLD_MP, rec); + iv->setValue(pos, rec, 0.0f); + } + iv->doCalculations(); } changed = true;