[PATCH] Flagged Cochran DCs for FTDI communications

John Van Ostrand john at vanostrand.com
Tue Sep 5 10:01:56 PDT 2017


This with serial_ftdi.c changes and other libdivecomputer changes
enables Cochran DCs to work with libftdi on android devices.

Signed-off-by: John Van Ostrand <john at vanostrand.com>
---
 src/descriptor.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/descriptor.c b/src/descriptor.c
index 9f3d155..e849883 100644
--- a/src/descriptor.c
+++ b/src/descriptor.c
@@ -317,12 +317,12 @@ static const dc_descriptor_t g_descriptors[] = {
 	{"DiveSystem", "iDive2 Deep",    DC_FAMILY_DIVESYSTEM_IDIVE, 0x44},
 	{"DiveSystem", "iDive2 Tech+",   DC_FAMILY_DIVESYSTEM_IDIVE, 0x45},
 	/* Cochran Commander */
-	{"Cochran", "Commander TM", DC_FAMILY_COCHRAN_COMMANDER, 0},
-	{"Cochran", "Commander I",  DC_FAMILY_COCHRAN_COMMANDER, 1},
-	{"Cochran", "Commander II", DC_FAMILY_COCHRAN_COMMANDER, 2},
-	{"Cochran", "EMC-14",       DC_FAMILY_COCHRAN_COMMANDER, 3},
-	{"Cochran", "EMC-16",       DC_FAMILY_COCHRAN_COMMANDER, 4},
-	{"Cochran", "EMC-20H",      DC_FAMILY_COCHRAN_COMMANDER, 5},
+	{"Cochran", "Commander TM", DC_FAMILY_COCHRAN_COMMANDER, 0},  // FTDI
+	{"Cochran", "Commander I",  DC_FAMILY_COCHRAN_COMMANDER, 1},  // FTDI
+	{"Cochran", "Commander II", DC_FAMILY_COCHRAN_COMMANDER, 2},  // FTDI
+	{"Cochran", "EMC-14",       DC_FAMILY_COCHRAN_COMMANDER, 3},  // FTDI
+	{"Cochran", "EMC-16",       DC_FAMILY_COCHRAN_COMMANDER, 4},  // FTDI
+	{"Cochran", "EMC-20H",      DC_FAMILY_COCHRAN_COMMANDER, 5},  // FTDI
 };
 
 typedef struct dc_descriptor_iterator_t {
-- 
2.4.11



More information about the subsurface mailing list