diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs index 5c6e1e946109d9365397d7dea7665f09ebadd796..ae0b89117951da85948703a794296b3c761ada39 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; }