Browse Source

Give AMU a much longer timeout on windows than other icarus devices.

Con Kolivas 12 years ago
parent
commit
251e1a98cc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      usbutils.c

+ 3 - 1
usbutils.c

@@ -67,6 +67,7 @@
 #define AVALON_TIMEOUT_MS 999
 #define AVALON_TIMEOUT_MS 999
 #define KLONDIKE_TIMEOUT_MS 999
 #define KLONDIKE_TIMEOUT_MS 999
 #define ICARUS_TIMEOUT_MS 999
 #define ICARUS_TIMEOUT_MS 999
+#define AMU_TIMEOUT_MS 1999
 #define HASHFAST_TIMEOUT_MS 999
 #define HASHFAST_TIMEOUT_MS 999
 #else
 #else
 #define BFLSC_TIMEOUT_MS 300
 #define BFLSC_TIMEOUT_MS 300
@@ -76,6 +77,7 @@
 #define AVALON_TIMEOUT_MS 200
 #define AVALON_TIMEOUT_MS 200
 #define KLONDIKE_TIMEOUT_MS 200
 #define KLONDIKE_TIMEOUT_MS 200
 #define ICARUS_TIMEOUT_MS 200
 #define ICARUS_TIMEOUT_MS 200
+#define AMU_TIMEOUT_MS 200
 #define HASHFAST_TIMEOUT_MS 200
 #define HASHFAST_TIMEOUT_MS 200
 #endif
 #endif
 
 
@@ -402,7 +404,7 @@ static struct usb_find_devices find_dev[] = {
 		.idVendor = 0x10c4,
 		.idVendor = 0x10c4,
 		.idProduct = 0xea60,
 		.idProduct = 0xea60,
 		.config = 1,
 		.config = 1,
-		.timeout = ICARUS_TIMEOUT_MS,
+		.timeout = AMU_TIMEOUT_MS,
 		.latency = LATENCY_UNUSED,
 		.latency = LATENCY_UNUSED,
 		INTINFO(amu_ints) },
 		INTINFO(amu_ints) },
 	{
 	{