From 9d80e7bfe47726e1f27be323088eb7d36f14c854 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 7 Dec 2012 20:08:29 -0800 Subject: Add CNS and pO2 tracking in the samples This adds the new members to the sample structure and fills them from supported dive computers (Uemis SDA and OSTC / Shearwater Predator, assuming you have libdivecomputer 0.3). Save relvant values of this to the XML file and load it back. Handle the new fields when merging dives. At this stage we don't DO anything with this, all we do is extract them from the dive computer, save them to the XML file and load them back. Signed-off-by: Dirk Hohndel --- uemis.c | 1 + 1 file changed, 1 insertion(+) (limited to 'uemis.c') diff --git a/uemis.c b/uemis.c index e4a4adb21..8d05a99f9 100644 --- a/uemis.c +++ b/uemis.c @@ -349,6 +349,7 @@ void uemis_parse_divelog_binary(char *base64, void *datap) { sample->cylinderindex = u_sample->active_tank; sample->cylinderpressure.mbar = (u_sample->tank_pressure_high * 256 + u_sample->tank_pressure_low) * 10; + sample->cns = u_sample->cns; uemis_event(dive, dc, sample, u_sample); finish_sample(dc); i += 0x25; -- cgit v1.2.3-70-g09d2