Files
swiftcontrol/lib
Jonas Acker 07f388bbe0 fix(sram): reconnect when setup/restore finds the link unresponsive
A GATT call that never completes (universal_ble's 10 s timeout) during
SRAM setup/restore left the connection wedged: every retry on the same
link timed out again, the bond handshake included, and the guided sheet
then asked the rider to hold the AXS button, which can't help.

- setupControl/restoreShifting: on a timeout (plain, or a bond handshake
  that timed out waiting for the derailleur) tear the link down through
  Connection.disconnect + rescan, the same path a genuine drop takes.
  isResetting keeps this instance listed so the rescan reconnects it and
  the open sheet retries on the fresh link. A create-bond decrypt failure
  (authorization refused) leaves the link up. The saved backup and key
  are never touched; the error is still rethrown.
- Guided sheet: a link timeout now shows an error explaining that the
  derailleur is reconnecting instead of the authorize hero.
- SramBleTransport: read/write/subscribe failures carry the operation
  and characteristic UUID ("... (read d905ee53-...)"); timeouts stay
  TimeoutException, other errors become SramTransportException(cause).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 19:47:42 +02:00
..