Diverter : 'static int nextIdx' not incremented when DebugLevel == DebugMode.Off
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user