diff --git a/src/suunto_eonsteel_parser.c b/src/suunto_eonsteel_parser.c index 8d213bc..ee90b4f 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -1085,6 +1085,7 @@ static int add_gas_type(suunto_eonsteel_parser_t *eon, const struct type_desc *d eon->cache.tankinfo[idx] = tankinfo; eon->cache.initialized |= 1 << DC_FIELD_GASMIX_COUNT; + eon->cache.initialized |= 1 << DC_FIELD_TANK_COUNT; return 0; } @@ -1115,6 +1116,7 @@ static int add_gas_size(suunto_eonsteel_parser_t *eon, float l) int idx = eon->cache.ngases-1; if (idx >= 0) eon->cache.tanksize[idx] = l; + eon->cache.initialized |= 1 << DC_FIELD_TANK; return 0; }