From 22f66501ac4075084c0fd1d0b0d943aa92df1306 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 17 Jan 2014 14:00:28 -0800 Subject: Add support for heartrate and bearing information in samples libdivecomputer already supports this, but we didn't save it. Tested-by: Oscar Isoz Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- save-xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'save-xml.c') 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"); } -- cgit v1.2.3-70-g09d2