1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 08:48:01 +00:00

Icarus driver elaspsed timeout shouldn't be just USB I/O

This commit is contained in:
Kano 2013-06-12 22:05:35 +10:00
parent 91034145ae
commit 65e21f18cb

View File

@ -445,7 +445,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
if (amt >= read_amount)
return ICA_NONCE_OK;
rc += SECTOMS(tdiff(&read_finish, &read_start));
rc = SECTOMS(tdiff(&read_finish, tv_start));
if (rc >= read_time) {
if (amt > 0)
applog(LOG_DEBUG, "Icarus Read: Timeout reading for %d ms", rc);