Browse Source

Merge branch 'bugfix_icarus_win_hanging' into kanoi_0

Conflicts:
	driver-icarus.c
Luke Dashjr 13 years ago
parent
commit
320d3a79b1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-icarus.c

+ 2 - 1
driver-icarus.c

@@ -122,7 +122,8 @@ static int icarus_open(const char *devpath)
 
 
 	SetCommConfig(hSerial, &comCfg, sizeof(comCfg));
 	SetCommConfig(hSerial, &comCfg, sizeof(comCfg));
 
 
-	COMMTIMEOUTS cto = {1000, 0, 1000, 0, 1000};
+	const DWORD ctoms = ICARUS_READ_FAULT_DECISECONDS * 100;
+	COMMTIMEOUTS cto = {ctoms, 0, ctoms, 0, ctoms};
 	SetCommTimeouts(hSerial, &cto);
 	SetCommTimeouts(hSerial, &cto);
 
 
 	return _open_osfhandle((LONG)hSerial, 0);
 	return _open_osfhandle((LONG)hSerial, 0);