Commit cc0bad0
fix: restore window position for the intermediate airing status
The Windowstatus enum has six values, not four. Comparing the Mercedes
Android app 1.71 against the proto sources showed that the window covers
only knew 0 to 3:
0 INTERMEDIATE, 1 COMPLETELY_OPENED, 2 COMPLETELY_CLOSED,
3 AIRING_POSITION, 4 INTERMEDIATE_AIRING_POSITION, 5 RUNNING
WindowStatusOverall likewise has a fifth value, 4 RUNNING.
Value 4 used to map to position 50 through the old
WINDOW_STATUS_INTERMEDIATE set. The rewrite in #427 dropped it, so a
window in the intermediate airing position reported no position at all.
Restore the previous mapping.
RUNNING stays deliberately unmapped: it means the window is moving and
carries no direction, so any position would be a guess. That is now
documented instead of being an accident of a missing dict key.
Neither value appears in 121504 recorded websocket messages, so this
closes a latent gap rather than an observed failure.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 35ea5f8 commit cc0bad0
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
34 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
0 commit comments