Commit ea3eccff016acd88b75ccb29c1a4ee4bb1e82df1

ckolivas 2014-02-05T11:03:06

Try one more time to get the hfa header on init since it can take 2 seconds for all 3 boards on a sierra.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index e019a55..3050067 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -329,7 +329,7 @@ resend:
 	// We extend the normal timeout - a complete device initialization, including
 	// bringing power supplies up from standby, etc., can take over a second.
 tryagain:
-	for (i = 0; i < 3; i++) {
+	for (i = 0; i < 4; i++) {
 		ret = hfa_get_header(hashfast, h, &hcrc);
 		if (unlikely(hashfast->usbinfo.nodev))
 			return false;