@@ -326,7 +326,7 int rs232availablebytes(rs232port_t fd) | |||||
326 | { |
|
326 | { | |
327 | DWORD dwErrorFlags; |
|
327 | DWORD dwErrorFlags; | |
328 | COMSTAT ComStat; |
|
328 | COMSTAT ComStat; | |
329 |
ClearCommError( |
|
329 | ClearCommError(fd, &dwErrorFlags, &ComStat); | |
330 | return((int)ComStat.cbInQue); |
|
330 | return((int)ComStat.cbInQue); | |
331 | } |
|
331 | } | |
332 |
|
332 |
General Comments 0
You need to be logged in to leave comments.
Login now