Commit addb8481c379aee17bf10de5cf368594530aaca7

Kano 2013-10-15T02:02:30

bflsc - also allow ' 0' in DEVICES IN CHAIN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-bflsc.c b/driver-bflsc.c
index 4b04bdc..a00b04a 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -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]);