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

cann't open serial again #34

Open
imxood opened this issue Nov 28, 2022 · 1 comment
Open

cann't open serial again #34

imxood opened this issue Nov 28, 2022 · 1 comment

Comments

@imxood
Copy link

imxood commented Nov 28, 2022

when SerialStream was dropped, the member "inner: mem::ManuallyDropserialport::COMPort" was not dropped, this will prevent to open the serial again.

image

in the code: examples\read_serialport.rs

image

image

@Psy-Kai
Copy link

Psy-Kai commented Mar 13, 2023

Ehm.. you don't drop the SerialStream in your example. Since you name one _rx and the other rx you try to open the serial port multiple times.

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

No branches or pull requests

2 participants