Skip to content

Commit 4b00b10

Browse files
authored
Merge pull request #579 from mbm-OR/bugfix/Fix-DPU-Load-values-burst
Fix for https://bugs.launchpad.net/or/+bug/1959336.
2 parents e549403 + 18ff734 commit 4b00b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSDieselLocomotive.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,11 +982,11 @@ public string GetDpuStatus(bool dataDpu, CABViewControlUnits loadUnits = CABView
982982
switch (loadUnits)
983983
{
984984
case CABViewControlUnits.AMPS:
985-
if (ThrottlePercent > 0)
985+
if (ThrottlePercent >= 0 && DynamicBrakePercent == -1)
986986
{
987987
data = (data / MaxForceN) * MaxCurrentA;
988988
}
989-
if (DynamicBrakePercent > 0)
989+
if (ThrottlePercent == 0 && DynamicBrakePercent >= 0)
990990
{
991991
data = (data / MaxDynamicBrakeForceN) * DynamicBrakeMaxCurrentA;
992992
}

0 commit comments

Comments
 (0)