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
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue