Skip to content

Commit fab59f5

Browse files
authored
Merge pull request #515 from peternewell/brake-fix#2
Correct issue with compressor not turning off
2 parents 62fcbfa + cd8e29f commit fab59f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ protected virtual void UpdateCompressor(float elapsedClockSeconds)
23502350
// Turn compressor on and off
23512351
if (MainResPressurePSI < CompressorRestartPressurePSI && LocomotivePowerSupply.AuxiliaryPowerSupplyState == PowerSupplyState.PowerOn && !CompressorIsOn)
23522352
SignalEvent(Event.CompressorOn);
2353-
else if ((MainResPressurePSI > MaxMainResPressurePSI || LocomotivePowerSupply.AuxiliaryPowerSupplyState != PowerSupplyState.PowerOn) && CompressorIsOn)
2353+
else if ((MainResPressurePSI >= MaxMainResPressurePSI || LocomotivePowerSupply.AuxiliaryPowerSupplyState != PowerSupplyState.PowerOn) && CompressorIsOn)
23542354
SignalEvent(Event.CompressorOff);
23552355

23562356
if (CompressorIsOn)

0 commit comments

Comments
 (0)