NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
344 stars 142 forks source link

MacOS: Speed 1M not supported #213

Open akuhtz opened 3 years ago

akuhtz commented 3 years ago

Hello, The speed 1M (1 000 000) is not supported on MacOS.

It fails with the following exception:

gnu.io.UnsupportedCommOperationException: Invalid Parameter
    at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:260)

There might have been a similar issue resolved here: https://github.com/dotnet/runtime/pull/44052/files

madhephaestus commented 3 years ago

If you would like to build and test a solution i would be happy to accept a PR with this change.