[PATCH 4/6] Cochran: Descriptor fixes

John Van Ostrand john at vanostrand.com
Sat Jul 15 13:39:39 PDT 2017


Typo on ID string.
Addresses for old commander set to use actual read addresses
instead of starting at 0.
---
 src/cochran_commander.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/cochran_commander.c b/src/cochran_commander.c
index 6b168ed..9655522 100644
--- a/src/cochran_commander.c
+++ b/src/cochran_commander.c
@@ -124,12 +124,12 @@ static const cochran_device_layout_t cochran_cmdr_tm_device_layout = {
 	0x158,		// cf_last_log
 	0xffffff,	// cf_last_interdive
 	0x15c,		// cf_serial_number
-	0x000000,	// rb_logbook_begin
-	0x002328,	// rb_logbook_end
+	0x010000,	// rb_logbook_begin
+	0x012328,	// rb_logbook_end
 	90,			// rb_logbook_entry_size
 	100,		// rb_logbook_entry_count
-	0x002328,	// rb_profile_begin
-	0x008000,	// rb_profile_end
+	0x012328,	// rb_profile_begin
+	0x020000,	// rb_profile_end
 	15,			// pt_fingerprint
 	4,			// fingerprint_size
 	0,			// pt_profile_pre
@@ -264,7 +264,7 @@ static unsigned int
 cochran_commander_get_model (cochran_commander_device_t *device)
 {
 	const cochran_commander_model_t models[] = {
-		{"\x01""12", COCHRAN_MODEL_COMMANDER_TM},
+		{"\x0a""12", COCHRAN_MODEL_COMMANDER_TM},
 		{"\x11""21", COCHRAN_MODEL_COMMANDER_PRE21000},
 		{"\x11""22", COCHRAN_MODEL_COMMANDER_AIR_NITROX},
 		{"730",      COCHRAN_MODEL_EMC_14},
-- 
2.4.11



More information about the devel mailing list