CUST: - FwUpdateSw: - start implementation of power correction - 2
This commit is contained in:
@@ -25,6 +25,12 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
|
||||
private List<Byte>_meterBinData = new List<Byte>{0x5A};
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Content of power correction file
|
||||
/// </summary>
|
||||
public List<String>PowCorrFileContent = new List<String>();
|
||||
|
||||
/// <summary>
|
||||
/// Power correction data.
|
||||
/// </summary>
|
||||
@@ -46,7 +52,7 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
/// <summary>
|
||||
/// Read power correction meter file.
|
||||
/// </summary>
|
||||
/// <returns>true: file found</returns>
|
||||
/// <returns>true: file found</returns>
|
||||
/// <remarks date="2024-May-08" author="Thomas Wiedebusch">
|
||||
/// - Initial
|
||||
/// </remarks>
|
||||
@@ -59,13 +65,34 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
var retVal = _currentGenesis.ReLogin();
|
||||
if (retVal)
|
||||
{
|
||||
PowCorrFileContent.Clear();
|
||||
retVal = _meterFile.ReadMeterFile(StrMeterPowCorrFileName, out _meterBinData);
|
||||
|
||||
// Build a string list of recorded data
|
||||
if (retVal)
|
||||
{
|
||||
retVal = BuildStringListOfPowCorrFileContent();
|
||||
}
|
||||
}
|
||||
|
||||
if (!loginReminder) _currentGenesis.Logout();
|
||||
return retVal;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Build a string list of logged power correction file content.
|
||||
/// </summary>
|
||||
/// <returns>true: file found</returns>
|
||||
/// <remarks date="2024-May-08" author="Thomas Wiedebusch">
|
||||
/// - Initial
|
||||
/// </remarks>
|
||||
public Boolean BuildStringListOfPowCorrFileContent()
|
||||
{
|
||||
if (_meterBinData == null || _meterBinData.Count == 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the meter power correction file.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user