Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix smart trainer disconnect issues #466

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Fix smart trainer disconnect issues #466

merged 1 commit into from
Jan 13, 2025

Conversation

morteako
Copy link
Collaborator

@morteako morteako commented Jan 12, 2025

Fixes bug that makes it impossible to reconnect (or connect to another) smart trainer after disconnect.
Current bug also does not show the trainer as disconnected even though it is

Real life user story

Avid cyclist morten calls sondre during a dundring session. Chrome is trolling morten by muting the messenger, and in desperation morten manages to somehow disable bluetooth. 🤡
This then cripples mortens dundring session. Because the trainer is disconnected, and there is no way to reconnect.
So morten has to download the current tcx, start a new dundring, reconnect hr and trainer, and start new session, and then combine the tcxs before uploading to strava.
Morten would like to avoid that 🤠

Current (buggy)

2025-01-12 22 42 34

This pr (fixxy)

2025-01-12 22 43 13

Previously implemented for HR : #226

Fix smart trainer disconnect issues by
adding event listener that actually handles it
Copy link
Owner

@sivertschou sivertschou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find and fix, but rip the dundring session 💀

@morteako morteako merged commit 77a4467 into main Jan 13, 2025
4 checks passed
@morteako morteako deleted the fix-reconnect-trainer branch January 13, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants