- Camera ROI DebugLevel inheritance fixed/improved, parent can be Off
- avoid empty lines in logs after SendCommand, SendCalibData, ValveMove logs
This commit is contained in:
@@ -41,7 +41,10 @@ namespace TBF.BenchControl.Cameras.CameraRoi
|
||||
if (cfg.DebugLevel != Entities.DebugMode.Off)
|
||||
{
|
||||
camera = TbfComponents.FindComponent(cfg.ParentName, components) as GenericDevices.ICamera;
|
||||
if (camera == null) throw new Exception("Cannot find " + Name + " parent");
|
||||
if ((camera == null) && (cfg.DebugLevel != Entities.DebugMode.Inherit))
|
||||
{
|
||||
throw new Exception("Cannot find " + Name + " parent");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user