Verify the oxygen and helium percentage
The oxygen and helium percentage in the gas change event should correspond to the percentages indicated in the dive header.
This commit is contained in:
parent
099fda0d2b
commit
cebf4089cc
@ -757,7 +757,7 @@ suunto_d9_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t ca
|
||||
if ((type & 0x80) == 0) {
|
||||
idx += parser->nccr;
|
||||
}
|
||||
if (idx >= parser->ngasmixes) {
|
||||
if (idx >= parser->ngasmixes || o2 != parser->oxygen[idx] || he != parser->helium[idx]) {
|
||||
ERROR (abstract->context, "Invalid gas mix.");
|
||||
return DC_STATUS_DATAFORMAT;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user