aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs
diff options
context:
space:
mode:
authorDavid Koren <David.Koren@twine-s.com>2022-06-26 22:17:34 +0300
committerDavid Koren <David.Koren@twine-s.com>2022-06-26 22:17:34 +0300
commit80dad6fff0f7b5e7e9441adb223bee363aad8d76 (patch)
treee3341b1afc1349fe5fd21b13a4ed8cc66f8b508e /Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs
parent8075160f94ce51d8f62c06e0c6466b8e7de764a3 (diff)
downloadTango-80dad6fff0f7b5e7e9441adb223bee363aad8d76.tar.gz
Tango-80dad6fff0f7b5e7e9441adb223bee363aad8d76.zip
Fixed TI normalization per Daria request
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs b/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs
index b2eeb4e51..5e6507bd0 100644
--- a/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs
+++ b/Software/Visual_Studio/Tango.PMR/ExtensionMethods.cs
@@ -143,8 +143,8 @@ public static class ExtensionMethods
var ti = stop.Dispensers.FirstOrDefault(x => x.DispenserLiquidType == DispenserLiquidType.TransparentInk);
if (ti == null) return;
- // if (Math.Max(0, minInkUptake - nlPcmSum) < minInkUptake * 0.02d) return;
- if (Math.Max(0, nlPerCM - nlPcmSum) < nlPerCM * 0.02d) return;
+ //if (Math.Max(0, minInkUptake - nlPcmSum) < minInkUptake * 0.02d) return;
+ if (Math.Max(0, nlPerCM - nlPcmSum) < nlPerCM * 0.02d) return; //Daria change
double newNlCM = Math.Max(0, nlPerCM - nlPcmSum);
ti.NanoliterPerCentimeter = newNlCM;