block_misc updated for MISC_USES_SPARGE

Mon, 14 Nov 2022 15:23:51 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 14 Nov 2022 15:23:51 +0100
changeset 435
6f84ab6125ad
parent 434
ebf4996ab396
child 436
d1a6c269ba6a

block_misc updated for MISC_USES_SPARGE

src/EditProductTab5.cpp file | annotate | diff | comparison | revisions
src/EditProductTab8.cpp file | annotate | diff | comparison | revisions
--- a/src/EditProductTab5.cpp	Fri Nov 11 15:04:23 2022 +0100
+++ b/src/EditProductTab5.cpp	Mon Nov 14 15:23:51 2022 +0100
@@ -38,7 +38,7 @@
 	return true;
     if (stage > PROD_STAGE_PRIMARY && use_use < MISC_USES_SECONDARY)
 	return true;
-    if (stage > PROD_STAGE_BREW && use_use < MISC_USES_PRIMARY)
+    if (stage > PROD_STAGE_BREW && (use_use < MISC_USES_PRIMARY || use_use == MISC_USES_SPARGE))
 	return true;
     if (stage > PROD_STAGE_WAIT && use_use < MISC_USES_MASH)
 	return true;
--- a/src/EditProductTab8.cpp	Fri Nov 11 15:04:23 2022 +0100
+++ b/src/EditProductTab8.cpp	Mon Nov 14 15:23:51 2022 +0100
@@ -63,6 +63,7 @@
 
     if ((F.di_ph != 5.7) && ((F.acid_to_ph_57 < - 0.1) || (F.acid_to_ph_57 > 0.1))) {
 	C1 = F.acid_to_ph_57 / (F.di_ph - 5.7);
+	//qDebug() << "  BufferCapacity(" << F.name << C1 << F.acid_to_ph_57 << F.di_ph << "from database";
     } else {
 	/*
 	 * If the acid_to_ph_5.7 is unknown from the maltster, guess the required acid.
@@ -79,6 +80,7 @@
 	   case FERMENTABLE_GRAINTYPE_SOUR_MALT:	C1 = -149;
 							break;
 	}
+	//qDebug() << "  BufferCapacity(" << F.name << C1 << "educated guess";
     }
     return C1;
 }

mercurial