mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 16:58:05 +00:00
Icarus driver elaspsed timeout shouldn't be just USB I/O
This commit is contained in:
parent
91034145ae
commit
65e21f18cb
@ -445,7 +445,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
|
|||||||
if (amt >= read_amount)
|
if (amt >= read_amount)
|
||||||
return ICA_NONCE_OK;
|
return ICA_NONCE_OK;
|
||||||
|
|
||||||
rc += SECTOMS(tdiff(&read_finish, &read_start));
|
rc = SECTOMS(tdiff(&read_finish, tv_start));
|
||||||
if (rc >= read_time) {
|
if (rc >= read_time) {
|
||||||
if (amt > 0)
|
if (amt > 0)
|
||||||
applog(LOG_DEBUG, "Icarus Read: Timeout reading for %d ms", rc);
|
applog(LOG_DEBUG, "Icarus Read: Timeout reading for %d ms", rc);
|
||||||
|
Loading…
Reference in New Issue
Block a user