18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Commit Graph

1 Commits

Author SHA1 Message Date
jerrrrycho
b24e87dc63 Cab: the light preset selector turns on past its end, with sound (#345)
* fix: the light preset selector turns on past its end with sound (eu07/maszyna#464)

A selector with Wrap=Yes turned past its last position to the first one (or
back) was set with PutValue(): no animation and no sound. On the EN57AKM these
are the positions 0 and A1. A knob whose positions make a full turn now turns on
the same way it was turned, sounding the position it reaches; other switches
still jump, but sound the position too.

* refactor(cab): the wrapping rotary switch without Sonar issues

The full turn and the way on are declared in the ifs that use them, and
the optional is tested with has_value(). No change in behaviour.
2026-11-20 16:32:55 +01:00