Commit 511bbb050c31ded90cfb175958aa1f37c38e3427

Kano 2013-05-22T23:49:08

CMR usb config guess

diff --git a/driver-icarus.c b/driver-icarus.c
index fb5c9da..fa71e34 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -253,6 +253,7 @@ static void icarus_initialise(struct cgpu_info *icarus, __maybe_unused int baud)
 	switch (icarus->usbdev->ident) {
 		case IDENT_BLT:
 		case IDENT_LLT:
+		case IDENT_CMR:
 			// Latency
 			transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_LATENCY, FTDI_VALUE_LATENCY,
 				 icarus->usbdev->found->interface, C_LATENCY);
@@ -345,8 +346,6 @@ static void icarus_initialise(struct cgpu_info *icarus, __maybe_unused int baud)
 				 &data, sizeof(data), C_SETBAUD);
 
 			break;
-		case IDENT_CMR:
-			break;
 		default:
 			quit(1, "icarus_intialise() called with invalid %s cgid %i ident=%d",
 				icarus->drv->name, icarus->cgminer_id,
diff --git a/usbutils.c b/usbutils.c
index ebad706..290bb91 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -231,8 +231,8 @@ static struct usb_find_devices find_dev[] = {
 		.drv = DRV_ICARUS,
 		.name = "CMR",
 		.ident = IDENT_CMR,
-		.idVendor = 0x067b,
-		.idProduct = 0x0230,
+		.idVendor = IDVENDOR_FTDI,
+		.idProduct = 0x8350,
 		.iProduct = "Cairnsmore1",
 		.kernel = 0,
 		.config = 1,