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 multiple connects #113

Merged
merged 2 commits into from
Oct 16, 2023
Merged

fix multiple connects #113

merged 2 commits into from
Oct 16, 2023

Conversation

alexrudd2
Copy link
Owner

@alexrudd2 alexrudd2 commented Oct 14, 2023

The event listeners for drag-n-drop don't need to be called multiple times, so pass [] as the second argument to useEffect.

The event listeners for the driver (probably) don't need to be called multiple times, so do it only for WebSerial (IS_WEB==true). revert, this breaks ping/pong

Wrap the SaxiDriver.connect() call in a flag so it doesn't get called multiple times in Root().

@alexrudd2 alexrudd2 force-pushed the fix-multiple-connects branch from 9236b36 to fb916c7 Compare October 14, 2023 21:33
@alexrudd2 alexrudd2 force-pushed the fix-multiple-connects branch from fb916c7 to 49a07d3 Compare October 14, 2023 21:54
@alexrudd2 alexrudd2 requested a review from jedahan October 14, 2023 21:55
@alexrudd2 alexrudd2 marked this pull request as draft October 14, 2023 22:01
@alexrudd2
Copy link
Owner Author

alexrudd2 commented Oct 14, 2023

Bah, this appears to break the ping/pong chats which update the Disconnected banner.

@alexrudd2 alexrudd2 marked this pull request as ready for review October 14, 2023 22:16
@alexrudd2
Copy link
Owner Author

Does it improve the situation for you if you cherry-pick to brushless-v4?

@jedahan
Copy link
Collaborator

jedahan commented Oct 16, 2023

Testing on top of brushless-v4 now

@alexrudd2 alexrudd2 closed this Oct 16, 2023
@alexrudd2 alexrudd2 reopened this Oct 16, 2023
@alexrudd2
Copy link
Owner Author

Testing on top of brushless-v4 now

(oops, didn't mean to close). OK, great! I'm hoping this solves the stuttering for you, and hope you saw #114. It's my attempt to consolidate the brushless changes (without a bunch of formatting noise)

@jedahan
Copy link
Collaborator

jedahan commented Oct 16, 2023

Plotting is much smoother now. Pause and cancel still do not work in the middle of a plot, but that we can solve as a separate issue

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