From 26e1ea6378e8da7be98d3f8dacf415c69dffc361 Mon Sep 17 00:00:00 2001 From: Thomas Wiedebusch Date: Wed, 11 Feb 2026 11:48:09 +0100 Subject: [PATCH] FM2014TestBench: - initial setup to test multiple FM2014 - 15.Step --- .../FM2014/FM2014Core/FM2014.cs | 7 +-- FM2014TestApp/Fm2014TestApp.sln.DotSettings | 1 + .../Ui/Fm2014sTest/FM2014TestBenchWindow.xaml | 4 +- .../Fm2014sTest/FM2014TestBenchWindow.xaml.cs | 54 ++++++++++++------- .../Properties/Resources.Designer.cs | 2 +- .../Fm2014sTest/Properties/Resources.de.resx | 2 +- .../Ui/Fm2014sTest/Properties/Resources.resx | 2 +- 7 files changed, 46 insertions(+), 26 deletions(-) diff --git a/Common/Hardware/WaterMeter/MechanicalMeter/FM2014/FM2014Core/FM2014.cs b/Common/Hardware/WaterMeter/MechanicalMeter/FM2014/FM2014Core/FM2014.cs index 9a13a498..faa445a7 100644 --- a/Common/Hardware/WaterMeter/MechanicalMeter/FM2014/FM2014Core/FM2014.cs +++ b/Common/Hardware/WaterMeter/MechanicalMeter/FM2014/FM2014Core/FM2014.cs @@ -114,12 +114,12 @@ namespace Sensus.Common.Hardware.WaterMeter.MechanicalMeter.FM2014.FM2014Core /// /// Minimal value for attenuation. /// - public const Byte ATTENUATION_MIN = 1; + public const Byte CURRENT_OUTPUT_ATTENUATION_MIN = 1; /// /// Maximal value for attenuation. /// - public const Byte ATTENUATION_MAX = 9; + public const Byte CURRENT_OUTPUT_ATTENUATION_MAX = 9; /// /// Minimal value for double pulse lock time in milliseconds, 0.0 means it is disabled. @@ -580,7 +580,8 @@ namespace Sensus.Common.Hardware.WaterMeter.MechanicalMeter.FM2014.FM2014Core get => _currentOutputAttenuation; private set { - if (value < ATTENUATION_MIN || value > ATTENUATION_MAX) + if (value < CURRENT_OUTPUT_ATTENUATION_MIN || + value > CURRENT_OUTPUT_ATTENUATION_MAX) return; _currentOutputAttenuation = value; diff --git a/FM2014TestApp/Fm2014TestApp.sln.DotSettings b/FM2014TestApp/Fm2014TestApp.sln.DotSettings index 69c27719..a7196d6f 100644 --- a/FM2014TestApp/Fm2014TestApp.sln.DotSettings +++ b/FM2014TestApp/Fm2014TestApp.sln.DotSettings @@ -2,6 +2,7 @@ True True True + True True True True diff --git a/FM2014TestApp/Ui/Fm2014sTest/FM2014TestBenchWindow.xaml b/FM2014TestApp/Ui/Fm2014sTest/FM2014TestBenchWindow.xaml index 7576ceb2..e4265026 100644 --- a/FM2014TestApp/Ui/Fm2014sTest/FM2014TestBenchWindow.xaml +++ b/FM2014TestApp/Ui/Fm2014sTest/FM2014TestBenchWindow.xaml @@ -338,7 +338,7 @@