Fixed a bug in emptying valves initialization on StateMachine startup
This commit is contained in:
@@ -33,8 +33,8 @@ namespace TBF.BenchControl.Elde.Valve
|
||||
get
|
||||
{
|
||||
int max = 0;
|
||||
foreach (var vlv in VOpen) if (vlv.Delay > max) max = vlv.Delay;
|
||||
foreach (var vlv in VClose) if (vlv.Delay > max) max = vlv.Delay;
|
||||
foreach (var vlv in VOpen) if ((vlv != null) && (vlv.Delay > max)) max = vlv.Delay;
|
||||
foreach (var vlv in VClose) if ((vlv != null) && (vlv.Delay > max)) max = vlv.Delay;
|
||||
return max;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user