ntdisp 

ntdisp Commit Details

Date:2013-11-17 20:36:22 (6 years 11 months ago)
Author:Nicola Fontana
Branch:master
Commit:632eb4502683c4908877b369d3dd458482b57db9
Parents: ca83b61cfa96d40dd6845d8aeb6226c5b24511ef
Message:win32: adjust timeout settings

Changes:
Msrc/lib/ntd-serial-win32.c (1 diff)

File differences

src/lib/ntd-serial-win32.c
168168
169169
170170
171
171172
172
173
173
174
175
176
177
174178
175179
176180
if (ntd_device_set_error_from_system(device, P_("`SetCommState' call")))
return;
/* All the time values are in milliseconds */
COMMTIMEOUTS TimeOuts = {
MAXDWORD, MAXDWORD, data->timeout * 1000000,
0, 0
0, /* Timeout between two char reads */
0, /* Time needed for reading one char */
data->timeout * 1000, /* Time to add for a single read */
0, /* Time needed for writing one char */
0 /* Time to add for a single write */
};
SetCommTimeouts(win32->handle, &TimeOuts);

Archive Download the corresponding diff file

Branches

Tags