Fix the salinity parsing
The parser->mode field is only initialized at the end of the function. The result is that the current code always used the default value (zero). Inside the function itself, the local variable should be used instead.
This commit is contained in:
parent
75f260a941
commit
c4b694fdb1
@ -266,7 +266,7 @@ mares_iconhd_cache (mares_iconhd_parser_t *parser)
|
||||
unsigned int settings = 0;
|
||||
if (parser->model == SMARTAPNEA) {
|
||||
settings = array_uint16_le (p + 0x1C);
|
||||
} else if (parser->mode == ICONHD_FREEDIVE) {
|
||||
} else if (mode == ICONHD_FREEDIVE) {
|
||||
settings = array_uint16_le (p + 0x08);
|
||||
} else {
|
||||
settings = array_uint16_le (p + 0x0C);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user