##// END OF EJS Templates
Sync
jeandet -
r52:9d7d44174085 qt
parent child
Show More
@@ -0,0 +1,12
1
2
3 HEADERS += \
4 $${PWD}/src/RS232.h
5
6 win32:SOURCES += $${PWD}/src/RS232_win.c
7
8 unix:SOURCES += $${PWD}/src/RS232_unix.c
9
10 debug:DEFINES+=RS232_debug
11
12
@@ -206,11 +206,11 int rs232setup(rs232port_t fd, int ChSiz
206 dcbSerialParams.Parity=privatedecodeparity(Parity);
206 dcbSerialParams.Parity=privatedecodeparity(Parity);
207 SetCommState((HANDLE)fd, &dcbSerialParams);
207 SetCommState((HANDLE)fd, &dcbSerialParams);
208 COMMTIMEOUTS timeouts={0};
208 COMMTIMEOUTS timeouts={0};
209 timeouts.ReadIntervalTimeout=100;
209 timeouts.ReadIntervalTimeout=1;
210 timeouts.ReadTotalTimeoutConstant=100;
210 timeouts.ReadTotalTimeoutConstant=10;
211 timeouts.ReadTotalTimeoutMultiplier=1;
211 timeouts.ReadTotalTimeoutMultiplier=1;
212 timeouts.WriteTotalTimeoutConstant=100;
212 timeouts.WriteTotalTimeoutConstant=1;
213 timeouts.WriteTotalTimeoutMultiplier=10;
213 timeouts.WriteTotalTimeoutMultiplier=1;
214 SetCommTimeouts((HANDLE)fd, &timeouts);
214 SetCommTimeouts((HANDLE)fd, &timeouts);
215 return rs232noerr;
215 return rs232noerr;
216 }
216 }
General Comments 0
You need to be logged in to leave comments. Login now