Skip to content

Invalid stop bits setting encountered #41

@chenxuuu

Description

@chenxuuu
let mut rx = serialport::new(&args.port, args.baud_rate).open_native_async()?;

error on this line

Error: Custom { kind: Other, error: "Invalid stop bits setting encountered" }

some software serialport doesen't support this (like esp32c3's usb software serialport)

I change that line code to this, then it's ok

let stop_bits = port.stop_bits().unwrap_or(StopBits::One);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions