Commit efa9963f8625a628a94e29f006c90306b20d7bda

Con Kolivas 2014-02-04T19:43:03

We should retry only 3 times to get an hfa header response to init since that is more than 1.5 second of waiting.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index a0ccf03..22f87ad 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 < 10; i++) {
+	for (i = 0; i < 3; i++) {
 		ret = hfa_get_header(hashfast, h, &hcrc);
 		if (unlikely(hashfast->usbinfo.nodev))
 			return false;