Bug fix in TBF.Utils.GetRegulVallvesPositions( ), TBF crashed when fn. was called from OutputPath from UI.

This commit is contained in:
Milan Hanajik
2021-04-28 10:44:59 +02:00
parent 4464a2025b
commit 0553caac89
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -645,7 +645,7 @@ namespace TBF.BenchControl.Sequences
}
/// Get regulation valve positioning operations
IList<IOperation> rvPosOps = GetRegValvePositioningOps(RegulValves, Utils.GetRegulValvesPositions(step.RegulValvesPct));
IList<IOperation> rvPosOps = GetRegValvePositioningOps(RegulValves, Utils.GetRegulValvesPositions(step.RegulValvesPct, RegulValves.Count));
/// Max. one SetRegulValvePositionOp can be started or stopped in one sub-step.
/// Therefore SetRegulValvePositionOp operations are added and removed to subsequent states one by one.