summaryrefslogtreecommitdiffstats
path: root/parse-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 /parse-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 'parse-xml.c')
-rw-r--r--parse-xml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 1d88ab6b7..f5859ba74 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -853,6 +853,10 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu
return;
if (MATCH("po2.sample", double_to_permil, &sample->po2))
return;
+ if (MATCH("heartbeat", get_index, &sample->heartbeat))
+ return;
+ if (MATCH("bearing", get_index, &sample->bearing))
+ return;
switch (import_source) {
case DIVINGLOG: