Commit 0cd2c5c3c829a8fa673fa668c0e2d6d72060d737

Con Kolivas 2013-06-23T10:12:44

Use the info timeout for read_nl in getidentify bflsc.

diff --git a/driver-bflsc.c b/driver-bflsc.c
index b157000..d43a08a 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -910,7 +910,7 @@ reinit:
 		goto unshin;
 	}
 
-	err = usb_read_nl(bflsc, buf, sizeof(buf)-1, &amount, C_GETIDENTIFY);
+	err = usb_read_nl_timeout(bflsc, buf, sizeof(buf)-1, &amount, BFLSC_INFO_TIMEOUT, C_GETIDENTIFY);
 	if (err < 0 || amount < 1) {
 		init_count++;
 		cgtime(&init_now);
diff --git a/usbutils.h b/usbutils.h
index 1191d15..0b8406a 100644
--- a/usbutils.h
+++ b/usbutils.h
@@ -315,7 +315,7 @@ void *usb_resource_thread(void *userdata);
 #define usb_read_nl(cgpu, buf, bufsiz, read, cmd) \
 	_usb_read(cgpu, DEFAULT_EP_IN, buf, bufsiz, read, DEVTIMEOUT, "\n", cmd, false)
 
-#define usb_read_nl_timeout(cgpu, buf, bufsiz, read, timeotu, cmd) \
+#define usb_read_nl_timeout(cgpu, buf, bufsiz, read, timeout, cmd) \
 	_usb_read(cgpu, DEFAULT_EP_IN, buf, bufsiz, read, timeout, "\n", cmd, false)
 
 #define usb_read_ok(cgpu, buf, bufsiz, read, cmd) \