From 18748d6bd21e79c5e052e2e5f8b80d48fd7bf9e1 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Tue, 9 May 2017 11:08:25 +0200
Subject: [PATCH] change check for end of pto cycle. relevant if pto cycle does
 not start at time 0

---
 .../Models/SimulationComponent/Impl/PTOCycleController.cs       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs
index 5c6e1e9461..ae0b891179 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs
@@ -87,7 +87,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 
 		public Second GetNextCycleTime()
 		{
-			if (CycleIterator.LastEntry && AbsTime.IsEqual(CycleIterator.RightSample.Time)) {
+			if (CycleIterator.LastEntry && AbsTime.IsEqual(Duration)) {
 				return null;
 			}
 
-- 
GitLab