Implement the initial gas mix

Initialize the initial gas mix correctly from the data in the dive
header, instead of always using the first gas mix.
This commit is contained in:
Jef Driesen 2019-04-02 21:07:03 +02:00
parent 5116ee8f2d
commit 6867ffb143

View File

@ -223,6 +223,8 @@ suunto_d9_parser_cache (suunto_d9_parser_t *parser)
} else {
parser->gasmix = data[0x28];
}
} else if (parser->model == DX) {
parser->gasmix = data[0x31] & 0x7F;
}
}
parser->config = config;