mio-serial icon indicating copy to clipboard operation
mio-serial copied to clipboard

cann't open serial again

Open imxood opened this issue 3 years ago • 1 comments

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

imxood avatar Nov 28 '22 14:11 imxood

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.

Psy-Kai avatar Mar 13 '23 16:03 Psy-Kai