aboutsummaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-17 14:00:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-10 07:03:24 -0800
commit22f66501ac4075084c0fd1d0b0d943aa92df1306 (patch)
tree8dedaff461f109d531f45c7e6045ec54585e4975 /save-xml.c
parentb88958ded55f6d437e74e6c753574128351ad257 (diff)
downloadsubsurface-22f66501ac4075084c0fd1d0b0d943aa92df1306.tar.gz
Add support for heartrate and bearing information in samples
libdivecomputer already supports this, but we didn't save it. Tested-by: Oscar Isoz <jan.oscar.isoz@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c
index 374632624..7eba7165c 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -330,6 +330,8 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
put_milli(b, " po2='", sample->po2, " bar'");
old->po2 = sample->po2;
}
+ show_index(b, sample->heartbeat, "heartbeat='", "'");
+ show_index(b, sample->bearing, "bearing='", "'");
put_format(b, " />\n");
}