diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-09-09 21:29:35 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-09 12:26:45 -0700 |
commit | dac90e3fdede540fbd93eb44a59906f050f0889b (patch) | |
tree | 74a1c2b5059a9a28d99d054e9f4af7b227b9ca67 /core/parse-xml.c | |
parent | aae2403ddd6dd8ff07c9acd1ef6639390fefb7d7 (diff) | |
download | subsurface-dac90e3fdede540fbd93eb44a59906f050f0889b.tar.gz |
DLF import: comment measured He
Measured He is documented (in comment). Will need information if all
measurements are needed or just start/end. First case would be added to
dive prifle, possibly cluttering it, second would be extra data.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index df05f5535..6d4135d26 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -1992,9 +1992,13 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size, struct dive_table *tabl battery.volt2 = (ptr[9] << 8) + ptr[8]; battery.percent2 = ptr[10]; break; + case 2: + /* Measure He */ + //printf("%ds he2 cells(0.01 mV): %d %d\n", time, (ptr[5] << 8) + ptr[4], (ptr[9] << 8) + ptr[8]); + break; case 3: /* Measure Oxygen */ - //printf("o2 cells(0.01 mV): %d %d %d %d\n", (ptr[5] << 8) + ptr[4], (ptr[7] << 8) + ptr[6], (ptr[9] << 8) + ptr[8], (ptr[11] << 8) + ptr[10]); + //printf("%d s: o2 cells(0.01 mV): %d %d %d %d\n", time, (ptr[5] << 8) + ptr[4], (ptr[7] << 8) + ptr[6], (ptr[9] << 8) + ptr[8], (ptr[11] << 8) + ptr[10]); break; case 4: /* Measure GPS */ |