aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-26 02:33:23 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-26 02:33:23 +0200
commita819f0763680f27bdff8f0cbccdcd4c13d6a2fdb (patch)
treeb9c9e8f99ee170c9da9df7b68364b8837bb3d7a7
parent53108c7036fe65232f39ee1d0dae0b9757ce99ff (diff)
downloadTango-a819f0763680f27bdff8f0cbccdcd4c13d6a2fdb.tar.gz
Tango-a819f0763680f27bdff8f0cbccdcd4c13d6a2fdb.zip
Fixed issue with IsEnabled on UWF manager.
Fixed issue on TI calc min vol threshold.
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/UWF/AlternativeUnifiedWriteFilterManager.cs1
-rw-r--r--Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/UWF/AlternativeUnifiedWriteFilterManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/UWF/AlternativeUnifiedWriteFilterManager.cs
index c95cdb376..ea57ca0d8 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/UWF/AlternativeUnifiedWriteFilterManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/UWF/AlternativeUnifiedWriteFilterManager.cs
@@ -75,6 +75,7 @@ namespace Tango.PPC.Common.UWF
LogManager.Log($"Getting UWF status using pattern '{pattern}'...");
CmdCommand command = new CmdCommand(UWF_PATH, $"get-config");
+ command.ExitStrategy = CmdCommand.ExitStrategies.StandardOutput;
command.OutputEncoding = CmdCommand.OutEncoding.Unicode;
var result = await command.Run();
diff --git a/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs b/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
index 66b62d665..ee36fd9ef 100644
--- a/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
+++ b/Software/Visual_Studio/Tango.BL/Dispensing/TransparentLiquidDispensingCalc.cs
@@ -28,7 +28,7 @@ namespace Tango.BL.Dispensing
nlPcmSum = Math.Max(0, liquidVolume.ProcessParametersTable.MinInkUptake - nlPcmSum);
- if (liquidVolume.Volume <= 2)
+ if (nlPcmSum < liquidVolume.ProcessParametersTable.MinInkUptake * 0.02d)
{
nlPcmSum = 0;
}