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:
parent
7fc9666429
commit
641545aac7
@ -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)",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user