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:
parent
d960a37e12
commit
811a9b4f89
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user