Merge branch 'main' of https://slm.sms-esaap.com/la_operations/laa_production
This commit is contained in:
@@ -2093,6 +2093,31 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
|
||||
|
||||
WriteRegister(Register.Customer.TriggerAlarmCancel, Alarm.ALL);
|
||||
|
||||
|
||||
|
||||
if (GetRegistersDic().Any(a => a.Key.RegisterName == "PersistenceGroup1"))
|
||||
{
|
||||
var x = ReadRegister("SENSUSRADIO_PersistenceGroup1");
|
||||
WriteRegister("SENSUSRADIO_PersistenceGroup1", new byte[] { 0x00,0xff,0x00,0xff });
|
||||
}
|
||||
|
||||
if (GetRegistersDic().Any(a => a.Key.RegisterName == "PersistenceGroup2"))
|
||||
{
|
||||
WriteRegister("SENSUSRADIO_PersistenceGroup2", new byte[] { 0x00, 0xff, 0x00, 0xff });
|
||||
}
|
||||
if (GetRegistersDic().Any(a => a.Key.RegisterName == "PersistenceGroup3"))
|
||||
{
|
||||
WriteRegister("SENSUSRADIO_PersistenceGroup3", new byte[] { 0x00, 0xff, 0x00, 0xff });
|
||||
}
|
||||
if (GetRegistersDic().Any(a => a.Key.RegisterName == "PersistenceGroup4"))
|
||||
{
|
||||
WriteRegister("SENSUSRADIO_PersistenceGroup4", new byte[] { 0x00, 0xff, 0x00, 0xff });
|
||||
}
|
||||
if (GetRegistersDic().Any(a => a.Key.RegisterName == "PersistenceGroup5"))
|
||||
{
|
||||
WriteRegister("SENSUSRADIO_PersistenceGroup5", new byte[] { 0x00, 0xff, 0x00, 0xff });
|
||||
}
|
||||
|
||||
WriteRegister("CUSTOMER_AlarmEnableMask", beforeCancelAlarmEnableMask);
|
||||
WriteRegister("CUSTOMER_AlarmBroadcastMask", beforeCancelAlarmBroadcastMask);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user