From 1b91c5d9011d8afa6101a99c449a19bee0fe8cdc Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 13 Jul 2020 11:27:30 +0200 Subject: [PATCH] fix per calcolo gauges TCiclo --- Thermo.Active.NC/NcAdapter.cs | 6 +++++- Thermo.Active/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Thermo.Active.NC/NcAdapter.cs b/Thermo.Active.NC/NcAdapter.cs index 42e6caa2..50cefa61 100644 --- a/Thermo.Active.NC/NcAdapter.cs +++ b/Thermo.Active.NC/NcAdapter.cs @@ -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)) { diff --git a/Thermo.Active/Properties/AssemblyInfo.cs b/Thermo.Active/Properties/AssemblyInfo.cs index ec2cfffb..97c53de1 100644 --- a/Thermo.Active/Properties/AssemblyInfo.cs +++ b/Thermo.Active/Properties/AssemblyInfo.cs @@ -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")] \ No newline at end of file +[assembly: AssemblyVersion("0.9.37")] \ No newline at end of file