1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Use a longer timeout for retrieving bflsc details.

This commit is contained in:
Con Kolivas 2013-06-09 17:19:20 +10:00
parent 7fc9666429
commit 641545aac7
2 changed files with 4 additions and 1 deletions

View File

@ -705,7 +705,8 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
return false;
}
err = usb_read_ok(bflsc, buf, sizeof(buf)-1, &amount, C_GETDETAILS);
err = usb_read_ok_timeout(bflsc, buf, sizeof(buf)-1, &amount,
BFLSC_INFO_TIMEOUT, C_GETDETAILS);
if (err < 0 || amount < 1) {
if (err < 0) {
applog(LOG_ERR, "%s detect (%s) get details return invalid/timed out (%d:%d)",

View File

@ -50,6 +50,8 @@
#define USB_CONFIG 1
#define BFLSC_INFO_TIMEOUT 999
#ifdef WIN32
#define BFLSC_TIMEOUT_MS 999
#define BITFORCE_TIMEOUT_MS 999