We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b6299 commit 1c5a0b2Copy full SHA for 1c5a0b2
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/EOT.cs
@@ -200,6 +200,21 @@ public override void Restore(BinaryReader inf)
200
ID = inf.ReadInt32();
201
EOTState = (EOTstate)(inf.ReadInt32());
202
DelayTimer = new Timer(this);
203
+ switch (EOTState)
204
+ {
205
+ case EOTstate.CommTestOn:
206
+ // restart timer
207
+ DelayTimer.Setup(CommTestDelayS);
208
+ DelayTimer.Start();
209
+ break;
210
+ case EOTstate.LocalTestOn:
211
212
+ DelayTimer.Setup(LocalTestDelayS);
213
214
215
+ default:
216
217
+ }
218
base.Restore(inf);
219
if (Train != null) Train.EOT = this;
220
}
0 commit comments