diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs index a45144c5ca126b8a02fa0e5e2eacba9db14483bc..b9660e1c3b6ee9ef6a73cd392e52ae5204d273fc 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs @@ -515,13 +515,19 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl switch (EcoRollState.State) { case EcoRollStates.EcoRollOn: - dBus.GearboxCtl.DisengageGearbox = true; + if (dBus.GearboxCtl != null) { + dBus.GearboxCtl.DisengageGearbox = true; + } + if (ADAS.EcoRoll == EcoRollType.WithEngineStop) { dBus.EngineCtl.CombustionEngineOn = false; } return; case EcoRollStates.EcoRollOff: - dBus.GearboxCtl.DisengageGearbox = false; + if (dBus.GearboxCtl != null) { + dBus.GearboxCtl.DisengageGearbox = false; + } + if (ADAS.EcoRoll == EcoRollType.WithEngineStop) { dBus.EngineCtl.CombustionEngineOn = true; }