Ignore all gas mixes for freedives
For freedives it makes no sense to report any gas mixes. The freedives also use a different sample format, which doesn't generate any gas change events.
This commit is contained in:
parent
9787bb7ac9
commit
5fd9317533
@ -697,11 +697,13 @@ shearwater_predator_parser_cache (shearwater_predator_parser_t *parser)
|
|||||||
parser->headersize = headersize;
|
parser->headersize = headersize;
|
||||||
parser->footersize = footersize;
|
parser->footersize = footersize;
|
||||||
parser->ngasmixes = 0;
|
parser->ngasmixes = 0;
|
||||||
for (unsigned int i = 0; i < ngasmixes; ++i) {
|
if (divemode != M_FREEDIVE) {
|
||||||
if (gasmix[i].oxygen == 0 && gasmix[i].helium == 0)
|
for (unsigned int i = 0; i < ngasmixes; ++i) {
|
||||||
continue;
|
if (gasmix[i].oxygen == 0 && gasmix[i].helium == 0)
|
||||||
parser->gasmix[parser->ngasmixes] = gasmix[i];
|
continue;
|
||||||
parser->ngasmixes++;
|
parser->gasmix[parser->ngasmixes] = gasmix[i];
|
||||||
|
parser->ngasmixes++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
parser->ntanks = 0;
|
parser->ntanks = 0;
|
||||||
for (unsigned int i = 0; i < NTANKS; ++i) {
|
for (unsigned int i = 0; i < NTANKS; ++i) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user