diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-09 22:13:36 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-09 13:22:00 -0700 |
commit | 848a5352c7afedd530186ae842719e8f67c8c66a (patch) | |
tree | 304260e9a579133fc96d08395ee05c224a2a2ae2 /save-xml.c | |
parent | 72aeb53e191c1e717aa0216387149b925cb3d52f (diff) | |
download | subsurface-848a5352c7afedd530186ae842719e8f67c8c66a.tar.gz |
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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c index 514600dd4..9c802b82a 100644 --- a/save-xml.c +++ b/save-xml.c @@ -219,6 +219,10 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl put_format(b, " ndl='%u:%02u min'", FRACTION(sample->ndl.seconds, 60)); old->ndl = sample->ndl; } + if (sample->tts.seconds != old->tts.seconds) { + put_format(b, " tts='%u:%02u min'", 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; |