1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 06:54:36 +00:00

icarus.c set the windows TODO timeout

This commit is contained in:
Kano 2012-03-04 14:05:39 +11:00
parent cb3323b7b5
commit 0fdf31dc27

View File

@ -100,7 +100,10 @@ static int icarus_open(const char *devpath)
NULL, OPEN_EXISTING, 0, NULL);
if (unlikely(hSerial == INVALID_HANDLE_VALUE))
return -1;
/* TODO: Needs setup read block time. just like VTIME = 10 */
COMMTIMEOUTS cto = {1000, 0, 1000, 0, 1000};
SetCommTimeouts(hSerial, &cto);
return _open_osfhandle((LONG)hSerial, 0);
#endif
}