mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-03 02:24:28 +01:00
The advertised serial was sliced off the raw device id. WiFi trainer ids are `dircon://<name>` and `dircon://` is itself exactly nine characters — the same length as the reference serial the slice was sized against — so every WiFi-proxied trainer advertised the identical, information-free `serial-number=dircon://`. Strip any `scheme://` prefix before slicing, and pad short ids instead of letting substring throw. BLE device ids keep their existing derivation, covered by a regression test. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>