Bug fix for the case of combined WM test and odd total nr. of watermeters (Munich)

This commit is contained in:
Milan Hanajik
2015-02-18 14:49:19 +01:00
parent fbdd937302
commit 1dbbe31eae
5 changed files with 8 additions and 5 deletions
@@ -408,7 +408,8 @@ namespace TBF.BenchControl
}
if (pmtrs != null)
{
for (int i = 0; i < Program.WMsCount; i++)
int count = Math.Min(Program.WMsCount, pmtrs.RegisterReaders.Length);
for (int i = 0; i < count; i++)
{
if ((pmtrs.RegisterReaders[i] != null) &&
(pmtrs.RegisterReaders[i].Cfg.DebugLevel == Entities.DebugMode.DetectedOff))