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

Baudrate for serialport on osx #3

Open
mineichen opened this issue Nov 4, 2020 · 0 comments
Open

Baudrate for serialport on osx #3

mineichen opened this issue Nov 4, 2020 · 0 comments

Comments

@mineichen
Copy link

I was able to use your driver on OSX with the following modification of your sample:

let serial_port = serialport::open_with_settings(devicepath, 
        &SerialPortSettings { baud_rate: 115200, ..SerialPortSettings::default()}
    ).unwrap();

Would you like to have this in the examples or might it be a good idea to add a featureflag for an optional serialport dependency and provide a method to create a RplidarDevice from a string directly? I'll create a pull request with your preferred option if you like

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

1 participant