Commit 27cef81
authored
Add MRK-S36C device quirk for resistance-level ERG control (#4827)
* Add MRK-S36C device quirk for resistance-level ERG control
The MRK-S36C bike is a generic FTMS device with no matching quirk, so
it defaulted to ergModeSupported=true. When an app targets ERG mode
(SetTargetPower) over Dircon, ftmsbike's power routing only forwards
the request when the bike is non-FTMS or a power sensor is configured,
so the target power request was silently dropped and resistance froze
at its last value instead of following the workout.
Detect the bike by name and force resistance-level mode with
ergModeSupported=false, matching other MRK bikes, so target power is
converted to a resistance level via the erg table instead.
* Add MRK_S36C condition for resistance calculation1 parent 96acc90 commit 27cef81
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
2124 | 2124 | | |
2125 | 2125 | | |
2126 | 2126 | | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
2127 | 2132 | | |
2128 | 2133 | | |
2129 | 2134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
0 commit comments