소스 검색

fixed bug in winSerial.c

Max Nuding 12 년 전
부모
커밋
ac681c3184
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5
    5
      Cube Control/helper/winSerial.c

+ 5
- 5
Cube Control/helper/winSerial.c 파일 보기

@@ -60,11 +60,11 @@ int serialOpen(char *port) {
60 60
 		return -1;
61 61
 	}
62 62
 	
63
-	timeouts.ReadIntervalTimeout = 1000 * dwReadTimeOutIntervalInSec;
64
-	timeouts.ReadTotalTimeoutConstant = 1000 * dwReadTimeOutIntervalInSec;
65
-	timeouts.ReadTotalTimeoutMultiplier = 1000 * dwReadTimeOutIntervalInSec;
66
-	timeouts.WriteTotalTimeoutConstant = 1000 * dwReadTimeOutIntervalInSec;
67
-	timeouts.WriteTotalTimeoutMultiplier = 1000 * dwReadTimeOutIntervalInSec;
63
+	timeouts.ReadIntervalTimeout = 1000;
64
+	timeouts.ReadTotalTimeoutConstant = 1000;
65
+	timeouts.ReadTotalTimeoutMultiplier = 1000;
66
+	timeouts.WriteTotalTimeoutConstant = 1000;
67
+	timeouts.WriteTotalTimeoutMultiplier = 1000;
68 68
 
69 69
 	if (!SetCommTimeouts(hSerial, &timeouts)) {
70 70
 		CloseHandle(hSerial);

Loading…
취소
저장