GenesisMeter: -avoid access of radio registers if this is not installed

This commit is contained in:
Thomas Wiedebusch
2023-01-06 12:43:14 +01:00
parent 0726113780
commit 07a59d3ccd
2 changed files with 8 additions and 6 deletions
@@ -1103,8 +1103,12 @@ namespace Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore
if (quickLogin)
{
WriteRegister(Register.Mertrologyasst.PulseMode, 0, true, true);
WriteRegister(Register.Sensusradio.WakeupInterval, 6, true, true);
WriteRegister("SENSUSRADIO_SystemState", 1, true, true);
//avoid access if radio app is not installed
if (RadioFrequencyMhz != null)
{
WriteRegister(Register.Sensusradio.WakeupInterval, 6, true, true);
WriteRegister("SENSUSRADIO_SystemState", 1, true, true);
}
}
if (Configuration != null && !Configuration.ProductionMode)