diff --git a/LFP_Manager_PRM/Function/csCanCommFunction.cs b/LFP_Manager_PRM/Function/csCanCommFunction.cs index be432b6..e9dba32 100644 --- a/LFP_Manager_PRM/Function/csCanCommFunction.cs +++ b/LFP_Manager_PRM/Function/csCanCommFunction.cs @@ -225,7 +225,7 @@ namespace LFP_Manager.Function ); rSystemData.CalibriationData.SystemInfo.devTime = dev; break; - case 21: // Cell Voltage Difference Parameter + case 2: // Cell Voltage Difference Parameter rSystemData.ParamData.CellVoltageDifferenceTrip = (short)((data[0] * 256) + data[1]); rSystemData.ParamData.CellVoltageDifferenceWarning = (short)((data[2] * 256) + data[3]); rSystemData.ParamData.CellVoltageDifferenceRelease = (short)((data[4] * 256) + data[5]); @@ -375,7 +375,7 @@ namespace LFP_Manager.Function int ss = Convert.ToInt32(String.Format("{0:ss}", DateTime.Now)); if (ss == 0) { - result[3] = 1; + result[3] |= 1; UInt32 nTime = (UInt32)csUtils.UnixTimeNow(); result[4] = (byte)(nTime >> 24); result[5] = (byte)(nTime >> 16); @@ -430,7 +430,7 @@ namespace LFP_Manager.Function result[4] = (byte)(aCalib.SystemVoltage.Calibration_K >> 8); result[5] = (byte)(aCalib.SystemVoltage.Calibration_K >> 0); result[6] = (byte)(aCalib.SystemVoltage.Calibration_B >> 8); - result[7] = (byte)(aCalib.SystemVoltage.Calibration_K >> 0); + result[7] = (byte)(aCalib.SystemVoltage.Calibration_B >> 0); break; case 22: // Current Warning and Fault Parameter temp = (short)(aParam.ChaOverCurrentWarning + 30000); diff --git a/LFP_Manager_PRM/Properties/AssemblyInfo.cs b/LFP_Manager_PRM/Properties/AssemblyInfo.cs index 987f608..9d7251b 100644 --- a/LFP_Manager_PRM/Properties/AssemblyInfo.cs +++ b/LFP_Manager_PRM/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.1.3.8")] -[assembly: AssemblyFileVersion("2.1.3.8")] +[assembly: AssemblyVersion("2.1.3.9")] +[assembly: AssemblyFileVersion("2.1.3.9")]