mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
avrdude: Fix serial timeout on Windows
This commit is contained in:
@@ -142,6 +142,7 @@ static BOOL serial_w32SetTimeOut(HANDLE hComPort, DWORD timeout) // in ms
|
|||||||
// ctmo.ReadIntervalTimeout = timeout;
|
// ctmo.ReadIntervalTimeout = timeout;
|
||||||
// ctmo.ReadTotalTimeoutMultiplier = timeout;
|
// ctmo.ReadTotalTimeoutMultiplier = timeout;
|
||||||
ctmo.ReadTotalTimeoutConstant = timeout;
|
ctmo.ReadTotalTimeoutConstant = timeout;
|
||||||
|
ctmo.WriteTotalTimeoutConstant = timeout;
|
||||||
|
|
||||||
return SetCommTimeouts(hComPort, &ctmo);
|
return SetCommTimeouts(hComPort, &ctmo);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user