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

Cannot open serial port in cygwin environment.

Open elfmimi opened this issue 2 years ago • 0 comments

Cygwin requires serial ports to be setup to so to say well known speed upon when it tries to open a port.

This crate usbd-serial is setting default value of data_rate in LineCoding to 8_000 . this is a problem for cygwin.

There is no way to modify data_rate from outside the crate. other than from usb host side. so easy and simple solution will be to just change the default value from 8_000 to 9_600 .

elfmimi avatar Aug 06 '22 13:08 elfmimi