Skip to content

Commit

Permalink
Disable reading any stop bit setting for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sirhcel committed Jul 29, 2024
1 parent b0d046b commit 5c0ede0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/windows/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@ impl SerialPort for COMPort {
fn stop_bits(&self) -> Result<StopBits> {
let dcb = dcb::get_dcb(self.handle)?;
match dcb.StopBits {
TWOSTOPBITS => Ok(StopBits::Two),
ONESTOPBIT => Ok(StopBits::One),
// FIXME: Clean up testing stuff.
// TWOSTOPBITS => Ok(StopBits::Two),
// ONESTOPBIT => Ok(StopBits::One),
_ => Err(Error::new(
ErrorKind::Unknown,
"Invalid stop bits setting encountered",
Expand Down

0 comments on commit 5c0ede0

Please sign in to comment.