18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-14 20:20:51 +01:00
Files
maszyna/tests
jerrrrycho a86bcb1ef5 fix: SM42 shunt mode switched on at the first move of the switch (eu07/maszyna#497)
CurrentSwitch() asked MaxCurrentSwitch() first. Since 2e86b3a5 (2021) that one
takes any change of the motor overload relay threshold, on every engine type, and
reports it, so the first move of the switch only flipped the threshold (meaningless
on a diesel) and the shunt mode of the SM42/SP42 (and the 2Ls150 gear of the SM03)
took a second one, both on and off; the cab switch, which shows the shunt mode,
didn't move at the first click. The diesels with a shunt mode now set it alone.
2026-11-07 20:08:59 +01:00
..