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 --- save-git.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'save-git.c') diff --git a/save-git.c b/save-git.c index f7a244a2a..0ba6e9801 100644 --- a/save-git.c +++ b/save-git.c @@ -243,6 +243,10 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl put_format(b, " ndl=%u:%02u", FRACTION(sample->ndl.seconds, 60)); old->ndl = sample->ndl; } + if (sample->tts.seconds != old->tts.seconds) { + put_format(b, " tts=%u:%02u", FRACTION(sample->tts.seconds, 60)); + old->tts = sample->tts; + } if (sample->in_deco != old->in_deco) { put_format(b, " in_deco=%d", sample->in_deco ? 1 : 0); old->in_deco = sample->in_deco; -- cgit v1.2.3-70-g09d2