src/EditRecipeTab2.cpp

changeset 451
ccf00788bccc
parent 449
00757c056ca6
child 454
2dfead81c72f
--- a/src/EditRecipeTab2.cpp	Mon Jan 09 15:03:55 2023 +0100
+++ b/src/EditRecipeTab2.cpp	Mon Jan 09 15:35:04 2023 +0100
@@ -171,9 +171,12 @@
 	for (i = 0; i < recipe->mashs.size(); i++) {
 	    if (recipe->mashs.at(i).step_type == 0)		// Infusion
 		mashinfuse += recipe->mashs.at(i).step_infuse_amount;
-	    if (recipe->mashs.at(i).step_temp < 75) {		// Ignore mashout
-		mashtime += recipe->mashs.at(i).step_time;
-		mashtemp += recipe->mashs.at(i).step_time * recipe->mashs.at(i).step_temp;
+	    if (recipe->mashs.at(i).step_temp <= 75 && recipe->mashs.at(i).step_temp >= 60) {	// Ignore mashout and low temperatures.
+		double timem = recipe->mashs.at(i).step_time;
+		if (i > 0)
+		    timem += recipe->mashs.at(i).ramp_time;
+		mashtime += timem;
+		mashtemp += timem * recipe->mashs.at(i).step_temp;
 	    }
 	}
 	mashtemp = mashtemp / mashtime;

mercurial