aboutsummaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-13 09:47:57 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-13 05:03:36 -0800
commit9d2c52f692018f13ce8ba87e751c7ad2e28d2f94 (patch)
tree4863ac1973f3cc634b6a6cc20d22e09a229fb7bc /core/libdivecomputer.c
parent78d1a3ed58de108b15ba0a63b0b0882a120b7214 (diff)
downloadsubsurface-9d2c52f692018f13ce8ba87e751c7ad2e28d2f94.tar.gz
Add pSCR divemode detection
In libdivecomputer, a new divemode is added (DC_DIVEMODE_SCR) useful for dive computers that have specfic functionality for semi-closed rebreathers. At this moment, only the HW computers seem to provide this. This commit takes care of proper recognition of this new divemode when importing data from a dive computer. Tested on an actual import from an OSTC3 that contained dives in this new mode. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r--core/libdivecomputer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index b67b95581..14fe42a6e 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -735,9 +735,12 @@ static dc_status_t libdc_header_parser(dc_parser_t *parser, device_data_t *devda
case DC_DIVEMODE_OC: /* Open circuit */
dive->dc.divemode = OC;
break;
- case DC_DIVEMODE_CCR: /* Closed circuit */
+ case DC_DIVEMODE_CCR: /* Closed circuit rebreather*/
dive->dc.divemode = CCR;
break;
+ case DC_DIVEMODE_SCR: /* Semi-closed circuit rebreather */
+ dive->dc.divemode = PSCR;
+ break;
}
#endif