@@ -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 | 206 | dcbSerialParams.Parity=privatedecodeparity(Parity); |
|
207 | 207 | SetCommState((HANDLE)fd, &dcbSerialParams); |
|
208 | 208 | COMMTIMEOUTS timeouts={0}; |
|
209 |
timeouts.ReadIntervalTimeout=1 |
|
|
210 |
timeouts.ReadTotalTimeoutConstant=10 |
|
|
209 | timeouts.ReadIntervalTimeout=1; | |
|
210 | timeouts.ReadTotalTimeoutConstant=10; | |
|
211 | 211 | timeouts.ReadTotalTimeoutMultiplier=1; |
|
212 |
timeouts.WriteTotalTimeoutConstant=1 |
|
|
213 |
timeouts.WriteTotalTimeoutMultiplier=1 |
|
|
212 | timeouts.WriteTotalTimeoutConstant=1; | |
|
213 | timeouts.WriteTotalTimeoutMultiplier=1; | |
|
214 | 214 | SetCommTimeouts((HANDLE)fd, &timeouts); |
|
215 | 215 | return rs232noerr; |
|
216 | 216 | } |
General Comments 0
You need to be logged in to leave comments.
Login now