LutUpdate: - accelerated by removing list of files
This commit is contained in:
@@ -804,6 +804,9 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
/// <remarks date="2022-Feb-16" author="Thomas Wiedebusch">
|
||||
/// - Initial
|
||||
/// </remarks>
|
||||
/// <remarks date="2023-Jan-20" author="Thomas Wiedebusch">
|
||||
/// - Removed list file drive 1 to speed up process. Files will be read back and binary compared!
|
||||
/// </remarks>
|
||||
private Boolean DownloadLutFiles()
|
||||
{
|
||||
//counters for actual process information
|
||||
@@ -847,26 +850,26 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisFile
|
||||
// read all files on drive 1
|
||||
_operationCtr++;
|
||||
|
||||
if (ListMeterFilesDrive1())
|
||||
{
|
||||
foreach (var checkInstalledFile in filesToDownload)
|
||||
{
|
||||
if (_meterFilesDrive1.Contains(checkInstalledFile))
|
||||
{
|
||||
ErrorMessage = "";
|
||||
var txt = $"{checkInstalledFile} found in meter";
|
||||
OnProcessUpdate?.Invoke(this, new ProcessExecEventArgs(txt));
|
||||
continue;
|
||||
}
|
||||
//if (ListMeterFilesDrive1())
|
||||
//{
|
||||
// foreach (var checkInstalledFile in filesToDownload)
|
||||
// {
|
||||
// if (_meterFilesDrive1.Contains(checkInstalledFile))
|
||||
// {
|
||||
// ErrorMessage = "";
|
||||
// var txt = $"{checkInstalledFile} found in meter";
|
||||
// OnProcessUpdate?.Invoke(this, new ProcessExecEventArgs(txt));
|
||||
// continue;
|
||||
// }
|
||||
|
||||
ErrorMessage = $"LUT file {StrLutMeterFileName} not installed!\n";
|
||||
returnValue = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
returnValue = false;
|
||||
}
|
||||
// ErrorMessage = $"LUT file {StrLutMeterFileName} not installed!\n";
|
||||
// returnValue = false;
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// returnValue = false;
|
||||
//}
|
||||
|
||||
if (!returnValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user