Commit e993cf3644945ccd5b3acf4453e9c79d4f73f48e

Kano 2013-06-23T10:01:18

bflsc try getinfo twice

diff --git a/driver-bflsc.c b/driver-bflsc.c
index c051c08..b157000 100644
--- a/driver-bflsc.c
+++ b/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: