mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-03 10:33:49 +01:00
A trainer whose gear ratio lands but whose ERG target does not scored as NO_CONTROL, because _verdictFromSteps had no case for "ERG failed, shifting passed" and fell through to the catch-all. The rider was then told their trainer ignores BikeControl and pushed onto a different control protocol — while the shifting they came for had been working the whole time. Several "Zwift Ready" trainers implement only the virtual-shifting subset of the Zwift Sync command set and expect ERG over FTMS, so this is not a rare shape. SelfTestVerdict.vsOkErgFail is the mirror of ergOkVsFail and reads VS_OK_ERG_FAIL in a bundle, so a:1/3,b:2/3 no longer looks like a dead trainer. Its card leads with the overlay — that setup is usable today — and offers the protocol swap second, as the thing that buys ERG on top. Also adds zwiftHandshake= to the trainer bundle line, for Zwift-Sync trainers only. lastCtl=ok says the BLE write was accepted, not that the trainer acted on it; `timeout` is what tells the two apart. Bumps prop to f569bb1 (full Zwift sim message + the handshake state this field renders). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>