summaryrefslogtreecommitdiffstats
path: root/core/import-suunto.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-06-16 03:03:16 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-15 17:45:33 -0700
commit076419d757d42578fc52f59f9feb77cb70ad588f (patch)
treef46444b8b98dc81e9c86e4e0a26f293472486c4b /core/import-suunto.c
parent67adf6473f5b61f3cf9aee3a397355982a429602 (diff)
downloadsubsurface-076419d757d42578fc52f59f9feb77cb70ad588f.tar.gz
DM5 import: support for larger sample size
Suunto has updated SampleBlob to use 30 byte blobs. This adds support for the increased size. Note that this only parses the same fields we have parsed before. (Currently I have no idea what the increased size is used for.) Note also that I do not currently have data with the new format so I only tested this still works with old data. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core/import-suunto.c')
-rw-r--r--core/import-suunto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/import-suunto.c b/core/import-suunto.c
index f94a3692f..0affd77ec 100644
--- a/core/import-suunto.c
+++ b/core/import-suunto.c
@@ -458,6 +458,11 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
tempformat = 1;
block_size = 26;
break;
+ case 5:
+ // Temperature is stored in float
+ tempformat = 1;
+ block_size = 30;
+ break;
default:
block_size = 16;
break;