Merge branch 'main' into Dev_CUST

This commit is contained in:
Thomas Wiedebusch
2024-05-07 16:25:38 +02:00
39 changed files with 995 additions and 463 deletions
@@ -4564,8 +4564,10 @@ namespace Xylem.ServiceFwUpdate.Ui.ServiceFwUpdateSw
InfoProcessActive(lblLutFileCheck, Resources.StrLutFileRestoreActive, false);
//1. If InstalledFwVersion is below 1.2.xxx a LUT file is NOT required
if ((_currentGenesis.Region == "EMEA" && _currentGenesis.InstalledFwVersion < MeterLutUpdate.EmeaFwThresholdForLutFile) ||
(_currentGenesis.Region == "NA" && _currentGenesis.InstalledFwVersion < MeterLutUpdate.NaFwThresholdForLutFile))
if ((_currentGenesis.Region == "EMEA"
&& _currentGenesis.InstalledFwVersion < MeterLutUpdate.EmeaFwThresholdForLutFile) ||
(_currentGenesis.Region == "NA"
&& _currentGenesis.InstalledFwVersion < MeterLutUpdate.NaFwThresholdForLutFile))
{
InfoProcessSuccess(lblLutFileCheck, Resources.StrLutFileNotNeeded);
_processState = successExitState;
@@ -4573,8 +4575,10 @@ namespace Xylem.ServiceFwUpdate.Ui.ServiceFwUpdateSw
}
// 2. LUT file is needed but invalid indicated by CRC or cannot be observed in file list
if ((!string.IsNullOrEmpty(_currentGenesis.LutCrc) && _currentGenesis.LutCrc.Contains(MeterLutFile.StrLutFileInvalidCrc))
|| (_readMeterFiles != null && !_readMeterFiles.Any(f => f.Contains(MeterLutFile.StrLutMeterFileName))))
if ( (!string.IsNullOrEmpty(_currentGenesis.LutCrc)
&& _currentGenesis.LutCrc.Contains(MeterLutFile.StrLutFileInvalidCrc))
|| (_readMeterFiles != null
&& !_readMeterFiles.Any(f => f.Contains(MeterLutFile.StrLutMeterFileName))))
{
InfoProcessFailed(lblLutFileCheck, Resources.StrLutFileNotInstalled);
_processState = errorExitState;