Browse Source

bflsc try getinfo twice

Kano 12 years ago
parent
commit
e993cf3644
1 changed files with 11 additions and 2 deletions
  1. 11 2
      driver-bflsc.c

+ 11 - 2
driver-bflsc.c

@@ -959,8 +959,17 @@ reinit:
 		goto unshin;
 	}
 
-	if (!getinfo(bflsc, 0))
-		goto unshin;
+	int tries = 0;
+	while (7734) {
+		if (getinfo(bflsc, 0))
+			break;
+
+		// N.B. we will get displayed errors each time it fails
+		if (++tries > 2)
+			goto unshin;
+
+		nmsleep(40);
+	}
 
 	switch (sc_info->driver_version) {
 		case BFLSC_DRV1: