From 848a5352c7afedd530186ae842719e8f67c8c66a Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 9 Jul 2014 22:13:36 +0200 Subject: Add support divecomputer based TTS Since earlier have we had support for our own calculated TTS. This adds support for holding TTS values reported by a dive computer. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- load-git.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'load-git.c') diff --git a/load-git.c b/load-git.c index be0e3539c..e61a0ca13 100644 --- a/load-git.c +++ b/load-git.c @@ -357,6 +357,10 @@ static void parse_sample_keyvalue(void *_sample, const char *key, const char *va sample->ndl = get_duration(value); return; } + if (!strcmp(key, "tts")) { + sample->tts = get_duration(value); + return; + } if (!strcmp(key, "in_deco")) { sample->in_deco = atoi(value); return; -- cgit v1.2.3-70-g09d2