mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b88958ded5
commit
22f66501ac
6 changed files with 22 additions and 2 deletions
|
@ -220,10 +220,10 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
|
|||
printf(" <rbt>%u</rbt>\n", value.rbt);
|
||||
break;
|
||||
case DC_SAMPLE_HEARTBEAT:
|
||||
printf(" <heartbeat>%u</heartbeat>\n", value.heartbeat);
|
||||
sample->heartbeat = value.heartbeat;
|
||||
break;
|
||||
case DC_SAMPLE_BEARING:
|
||||
printf(" <bearing>%u</bearing>\n", value.bearing);
|
||||
sample->bearing = value.bearing;
|
||||
break;
|
||||
case DC_SAMPLE_VENDOR:
|
||||
printf(" <vendor time='%u:%02u' type=\"%u\" size=\"%u\">", FRACTION(sample->time.seconds, 60),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue