Diverter : 'static int nextIdx' not incremented when DebugLevel == DebugMode.Off

This commit is contained in:
Milan Hanajik
2020-07-09 10:10:16 +02:00
parent fcdf1ea16b
commit 8c0ebcb871
@@ -75,6 +75,8 @@ namespace TBF.BenchControl.Elde.Diverter
controlBoard = TbfComponents.FindComponent(cfg.ParentName, components) as ControlBoardDev;
if (controlBoard == null) throw new Exception("Cannot find " + Name + " parent");
if (cfg.DebugLevel != Config.Entities.DebugMode.Off)
{
if (diverterCfg.BitNr < 0 || diverterCfg.BitNr >= 64) throw new ArgumentOutOfRangeException("position");
this.mask = (((UInt128)1) << diverterCfg.BitNr);
@@ -150,6 +152,7 @@ namespace TBF.BenchControl.Elde.Diverter
log.Debug(this.ToString());
}
}
///
/// Calendar support