Commit 2c09b33
Apply bike resistance gain to FTMS target-resistance-level writes
Fixes resistance mismatch on bikes like the Toputure TEB5, which
internally amplifies the received resistance level (~25% higher than
requested). The FTMS_SET_INDOOR_BIKE_SIMULATION_PARAMS branch already
applied bike_resistance_gain_f/offset, but the FTMS_SET_TARGET_RESISTANCE_LEVEL
branch used by TEB5 sent the raw value. Default gain is 1.0, so this
is a no-op for anyone not configuring it.
Fixes discussion #4793
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent be5a34b commit 2c09b33
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| |||
0 commit comments