Skip to content

Commit 0531e58

Browse files
committed
Fix non-EP tokens
1 parent 938b320 commit 0531e58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Controllers/MSTSBrakeController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public override void UpdatePressure(ref float pressureBar, float elapsedClockSec
185185
case ControllerState.VacApplyContServ:
186186
// Continuous service position for vacuum brakes - allows brake to be adjusted up and down continuously between the ON and OFF position
187187
pressureBar = (1 - x) * MaxPressureBar();
188+
epState = -1;
188189
break;
189190
case ControllerState.EPApply:
190191
case ControllerState.EPOnly:
@@ -219,6 +220,7 @@ public override void UpdatePressure(ref float pressureBar, float elapsedClockSec
219220
x = MaxPressureBar() - FullServReductionBar() * (notch.Smooth ? x : CurrentValue());
220221
IncreasePressure(ref pressureBar, Math.Min(x, MainReservoirPressureBar()), ReleaseRateBarpS(), elapsedClockSeconds);
221222
DecreasePressure(ref pressureBar, x, ApplyRateBarpS(), elapsedClockSeconds);
223+
epState = -1;
222224
break;
223225
}
224226

0 commit comments

Comments
 (0)