-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
9236b36
to
fb916c7
Compare
fb916c7
to
49a07d3
Compare
|
Does it improve the situation for you if you cherry-pick to |
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) |
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 |
The event listeners for drag-n-drop don't need to be called multiple times, so pass
[]
as the second argument touseEffect
.The event listeners for the driver (probably) don't need to be called multiple times, so do it only for WebSerial (revert, this breaks ping/pongIS_WEB==true
).Wrap the
SaxiDriver.connect()
call in a flag so it doesn't get called multiple times inRoot()
.