mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
78d1a3ed58
commit
9d2c52f692
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue