Commit 4fcff21
fix: KickRun speed display and rapid-press accumulation
- Override changeSpeed() to base subsequent rapid presses on the
already-pending requestSpeed rather than the stale telemetry speed.
This prevents multiple quick taps all sending the same speed value.
- After sending a BLE speed command, set Speed = requestSpeed optimistically
and set paddlePending = true. This makes the speed tile update immediately
in the UI instead of waiting for the belt to physically move.
- While paddlePending is true, telemetry speed notifications are ignored
so they don't overwrite the displayed commanded speed. paddlePending is
cleared when the KICKR RUN issues its paddle-push challenge (FD E0 01).
- Changed the speed-equality check to use abs() > 0.01 (km/h) to avoid
repeated BLE writes caused by floating-point rounding in the telemetry
µm/s conversion.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 760feda commit 4fcff21
2 files changed
Lines changed: 28 additions & 4 deletions
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
| |||
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
123 | | - | |
| 135 | + | |
124 | 136 | | |
125 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
126 | 142 | | |
127 | 143 | | |
128 | 144 | | |
| |||
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
| 151 | + | |
135 | 152 | | |
136 | 153 | | |
137 | 154 | | |
| |||
171 | 188 | | |
172 | 189 | | |
173 | 190 | | |
| 191 | + | |
174 | 192 | | |
175 | 193 | | |
176 | 194 | | |
| |||
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
203 | 225 | | |
204 | 226 | | |
205 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
0 commit comments