From 0e61b4cc7698d92498695145245e32121fa5f154 Mon Sep 17 00:00:00 2001 From: "VKMTHD\\haraldmartini" <harald.martini@student.tugraz.at> Date: Mon, 10 Oct 2022 13:18:23 +0200 Subject: [PATCH] reset pto cycle when idle is activated --- .../Models/SimulationComponent/Impl/PTOCycleController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs index 4fe259ec41..1a16915cb5 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/PTOCycleController.cs @@ -145,7 +145,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public void CommitSimulationStep(Second time, Second simulationInterval, IModalDataContainer container) { - if (_ptoActive) { + if (_ptoActive) { CycleIterator.MoveNext(); } } @@ -186,6 +186,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl public void ActivateIdle() { _ptoActive = false; + Reset(); } #endregion -- GitLab