fix per calcolo gauges TCiclo

This commit is contained in:
Samuele Locatelli
2020-07-13 11:27:30 +02:00
parent 5a29ac454f
commit 1b91c5d901
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1231,7 +1231,6 @@ namespace Thermo.Active.NC
break;
}
// creo obj contenuto
currProdData = new DTOThermoProd()
{
@@ -1245,6 +1244,11 @@ namespace Thermo.Active.NC
MinVal = item.MinVal / item.ScaleFactor,
MaxVal = item.MaxVal / item.ScaleFactor
};
// fix: se + timeAdv uso come max ultimo TC rilevato...
if (item.Name == "timeAdv")
{
currProdData.MaxVal = (int)Math.Ceiling((double)lastProdInfoData.TimeCycleGross / 1000);
}
// aggiungo a dictionary!
if (currentLiveProd.ContainsKey(item.Name))
{
+1 -1
View File
@@ -30,4 +30,4 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.9.36")]
[assembly: AssemblyVersion("0.9.37")]