CUST: FwUpdateBuilder: added registers to remove from register restore

This commit is contained in:
Thomas Wiedebusch
2023-10-09 20:25:05 +02:00
parent 950845fffe
commit 9de8e5839a
2 changed files with 13 additions and 1 deletions
@@ -298,8 +298,12 @@ namespace Xylem.ServiceFwUpdate.Common.FwUpdateDb
// reverse byte order for all parameters except those listed below
if (!string.IsNullOrEmpty(proPar.RegisterName))
{
// ATTENTION: These parameters are coming out of the DB and need to be removed from list
if (RegisterRestorer.NeededToRemoveParameters.Contains(proPar.RegisterName))
{
}
// ATTENTION: These parameters are coming out of the DB in wrong order
if (RegisterRestorer.UnRevertedParameters.Contains(proPar.RegisterName))
else if (RegisterRestorer.UnRevertedParameters.Contains(proPar.RegisterName))
{
// skip VAKO if equally register is set in CSD or on read only access
if (proPar.Source == ProgrammingSource.Vako && DbProgrammingParameters.Any(a =>