mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
bflsc - also allow ' 0' in DEVICES IN CHAIN
This commit is contained in:
parent
1f166d99b0
commit
dd1f67fe5f
@ -645,7 +645,8 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
|
|||||||
else if (strstr(firstname, BFLSC_DI_XLINKPRESENT))
|
else if (strstr(firstname, BFLSC_DI_XLINKPRESENT))
|
||||||
sc_dev.xlink_present = strdup(fields[0]);
|
sc_dev.xlink_present = strdup(fields[0]);
|
||||||
else if (strstr(firstname, BFLSC_DI_DEVICESINCHAIN)) {
|
else if (strstr(firstname, BFLSC_DI_DEVICESINCHAIN)) {
|
||||||
if (fields[0][0] == '0')
|
if (fields[0][0] == '0' ||
|
||||||
|
(fields[0][0] == ' ' && fields[0][1] == '0'))
|
||||||
sc_info->sc_count = 1;
|
sc_info->sc_count = 1;
|
||||||
else
|
else
|
||||||
sc_info->sc_count = atoi(fields[0]);
|
sc_info->sc_count = atoi(fields[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user