LowLevelTools: - FixBattery: - store configuration of POWERMON
This commit is contained in:
parent
6afbf5643b
commit
a99e8e372c
@ -81,7 +81,7 @@ namespace Xylem.Common.Hardware.WaterMeter.MagFlux.Protocols.RequestProtocol
|
||||
_magFluxRequestProtocol = _magFluxApi.Connect(portName);
|
||||
if (_magFluxRequestProtocol == null)
|
||||
{
|
||||
_logger.Debug($"{_ident} Connection to {portName} failed!");
|
||||
_logger.Debug($"{_ident} Connection to {portName} failed! Object reference returned null");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -1121,6 +1121,9 @@ namespace Xylem.Common.Ui.GenesisToolBox
|
||||
/// <remarks date="2022-Dec-20" author="Roland Drabesch">
|
||||
/// - Initial
|
||||
/// </remarks>
|
||||
/// <remarks date="2024-Aug-15" author="Roland Drabesch">
|
||||
/// - Store configuration of POWERMON.
|
||||
/// </remarks>
|
||||
private void btnFixBattery_Click(Object sender, EventArgs e)
|
||||
{
|
||||
if (_currentGenesis == null)
|
||||
@ -1150,6 +1153,9 @@ namespace Xylem.Common.Ui.GenesisToolBox
|
||||
SetActualProcessAndLog(@"Set meter battery quantity to 2");
|
||||
_currentGenesis.WriteRegister("POWERMON_BatteryQuantity", (UInt32)2);
|
||||
|
||||
SetActualProcessAndLog(@"Store configuration POWERMON");
|
||||
_currentGenesis.WriteRegister("POWERMON_StoreConfiguration", (UInt32)1);
|
||||
|
||||
SetActualProcessAndLog(@"Trigger idle to release function to normal operation");
|
||||
_currentGenesis.WriteRegister("GENESISFLOW_TriggerIdle", (UInt32)0);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user