1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

bflsc - also allow ' 0' in DEVICES IN CHAIN

This commit is contained in:
Kano 2013-10-15 02:02:30 +11:00 committed by Con Kolivas
parent 8455cc3f77
commit addb8481c3

View File

@ -645,7 +645,8 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
else if (strstr(firstname, BFLSC_DI_XLINKPRESENT))
sc_dev.xlink_present = strdup(fields[0]);
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;
else
sc_info->sc_count = atoi(fields[0]);