summaryrefslogtreecommitdiffstats
path: root/core/import-suunto.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/import-suunto.c')
-rw-r--r--core/import-suunto.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/import-suunto.c b/core/import-suunto.c
index 35a2c86de..e2c9aad05 100644
--- a/core/import-suunto.c
+++ b/core/import-suunto.c
@@ -425,6 +425,17 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
cur_dive->dc.surface_pressure.mbar = (atoi(data[14]) / 100);
interval = data[16] ? atoi(data[16]) : 0;
+
+ /*
+ * sampleBlob[0] version number, indicates the size of one sample
+ *
+ * Following ones describe single sample, bugs in interpretation of the binary blob are likely:
+ *
+ * sampleBlob[3] depth
+ * sampleBlob[7-9] pressure
+ * sampleBlob[11] temperature - either full Celsius or float, might be different field for some version of DM
+ */
+
sampleBlob = (unsigned const char *)data[24];
if (sampleBlob) {