mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Enable nonce range in the normal init sequence for bfl.
This commit is contained in:
parent
8766bca4d4
commit
1f2e9a49f4
@ -84,6 +84,9 @@ static bool bitforce_detect_one(const char *devpath)
|
|||||||
bitforce->deven = DEV_ENABLED;
|
bitforce->deven = DEV_ENABLED;
|
||||||
bitforce->threads = 1;
|
bitforce->threads = 1;
|
||||||
bitforce->sleep_ms = BITFORCE_SLEEP_MS;
|
bitforce->sleep_ms = BITFORCE_SLEEP_MS;
|
||||||
|
/* Initially enable support for nonce range and disable it later if it
|
||||||
|
* fails */
|
||||||
|
bitforce->nonce_range = true;
|
||||||
|
|
||||||
if (likely((!memcmp(pdevbuf, ">>>ID: ", 7)) && (s = strstr(pdevbuf + 3, ">>>")))) {
|
if (likely((!memcmp(pdevbuf, ">>>ID: ", 7)) && (s = strstr(pdevbuf + 3, ">>>")))) {
|
||||||
s[0] = '\0';
|
s[0] = '\0';
|
||||||
@ -201,9 +204,6 @@ void bitforce_init(struct cgpu_info *bitforce)
|
|||||||
bitforce->name = strdup(pdevbuf + 7);
|
bitforce->name = strdup(pdevbuf + 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initially enable support for nonce range and disable it later if it
|
|
||||||
* fails */
|
|
||||||
bitforce->nonce_range = true;
|
|
||||||
bitforce->device_fd = fdDev;
|
bitforce->device_fd = fdDev;
|
||||||
bitforce->sleep_ms = BITFORCE_SLEEP_MS;
|
bitforce->sleep_ms = BITFORCE_SLEEP_MS;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user