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(usb): do not wait for send state #4822

Merged
merged 2 commits into from
Mar 29, 2024
Merged

fix(usb): do not wait for send state #4822

merged 2 commits into from
Mar 29, 2024

Conversation

raphaelcoeffic
Copy link
Member

@raphaelcoeffic raphaelcoeffic commented Mar 29, 2024

Fixes #4731
Fixes #4740

Summary of changes:

  • removed wait for send state from usbSerialPutc().
  • use usbPlugged() instead of cdcConnected as the later is updated from the UI task which is blocked while in passthrough mode.

@raphaelcoeffic raphaelcoeffic added this to the 2.10 milestone Mar 29, 2024
@raphaelcoeffic raphaelcoeffic added the bug/regression ↩️ A new version of EdgeTX broke something label Mar 29, 2024
`cdcConnected` is updated from the UI task and cannot be used here.

Fixes #4740
@pfeerick pfeerick self-requested a review March 29, 2024 09:50
Copy link
Member

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

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

re: #4740

During internal ELRS update via ELRS Configurator:
Pocket - no longer locks up
TX16S - no longer locks up
T14 - no longer locks up

Note: you need to unplug the USB after an ELRS update before the UI becomes responsive again. It will freeze from the moment the update process starts, until the USB is unplugged.

re: #4731
TX16S-MPM - no longer locks up, side note: Telem Mirror over USB working perfectly with my janky python test scipt
Pocket-ELRS - no lockup, serial data present

@pfeerick pfeerick merged commit 2d4c1ac into main Mar 29, 2024
44 checks passed
@pfeerick pfeerick deleted the fix-usb-serial branch March 29, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something
Projects
None yet
3 participants