summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar John Van Ostrand <john@vanostrand.com>2014-10-17 21:03:37 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-27 15:21:19 -0700
commit49401eec0bc83bc852114eac0a6ec828016e9ae8 (patch)
tree8f3a47568692791ce2e1bd987c6ffea9d1a907db /file.c
parentb5dedcfba41cf5f3d4d62de37aa83470ce8ccba3 (diff)
downloadsubsurface-49401eec0bc83bc852114eac0a6ec828016e9ae8.tar.gz
Finished Cochran dive log import
I fixed up the decode and finished the parse for Cochran EMC, Commander and Gemini computers. I suspect that this code may only work with files from certain versions of Cochran Analyst. It works with my own CAN files and with the samples that came with Analyst v4.01v. A seemingly arbitrary offset of 0x4914 is needed to access data. The previous code uses 0x4a14 and 0x4b14. I suspect these are from different version of Analyst. [Dirk Hohndel: whitespace cleanup, add files to subsurface.pro, made sure this compiles without the corresponding patch to libdivecomputer (that isn't upstream, yet), cleaned up the usage of structs, removed a few unused variables] Signed-off-by: John Van Ostrand <john@vanostrand.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/file.c b/file.c
index da5ea830d..6ada903fd 100644
--- a/file.c
+++ b/file.c
@@ -351,13 +351,9 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo
/* CSV files */
if (!strcasecmp(fmt, "CSV"))
return 1;
-
-#if ONCE_COCHRAN_IS_SUPPORTED
/* Truly nasty intentionally obfuscated Cochran Anal software */
if (!strcasecmp(fmt, "CAN"))
return try_to_open_cochran(filename, mem);
-#endif
-
/* Cochran export comma-separated-value files */
if (!strcasecmp(fmt, "DPT"))
return try_to_open_csv(filename, mem, CSV_DEPTH);