Report the correct dive mode for SCR dives

The status field contains an extra bit for SCR dives, so there is no
reason to report them as CCR dives.
This commit is contained in:
Jef Driesen 2022-02-07 19:03:46 +01:00
parent d960a37e12
commit 811a9b4f89

View File

@ -391,7 +391,7 @@ shearwater_predator_parser_cache (shearwater_predator_parser_t *parser)
// Status flags.
unsigned int status = data[offset + 11 + pnf];
if ((status & OC) == 0) {
mode = DC_DIVEMODE_CCR;
mode = status & SC ? DC_DIVEMODE_SCR : DC_DIVEMODE_CCR;
}
// Gaschange.