Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-quarta committed Jun 18, 2024
1 parent 0a75184 commit ac9e39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use winapi::um::handleapi::*;
use winapi::um::processthreadsapi::GetCurrentProcess;
use winapi::um::winbase::*;
use winapi::um::winnt::{
DUPLICATE_SAME_ACCESS, FILE_ATTRIBUTE_NORMAL, GENERIC_READ, GENERIC_WRITE, HANDLE,
DUPLICATE_SAME_ACCESS, FILE_ATTRIBUTE_NORMAL, GENERIC_READ, GENERIC_WRITE, HANDLE, MAXDWORD,
};

use crate::windows::dcb;
Expand Down Expand Up @@ -243,7 +243,7 @@ impl SerialPort for COMPort {
let milliseconds = timeout.as_millis();

let mut timeouts = COMMTIMEOUTS {
ReadIntervalTimeout: 0,
ReadIntervalTimeout: MAXDWORD,
ReadTotalTimeoutMultiplier: 0,
ReadTotalTimeoutConstant: milliseconds as DWORD,
WriteTotalTimeoutMultiplier: 0,
Expand Down

0 comments on commit ac9e39d

Please sign in to comment.