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>
This commit is contained in:
Miika Turkia 2018-06-16 03:03:16 +03:00 committed by Dirk Hohndel
parent 67adf6473f
commit 076419d757

View file

@ -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;