Use the same tables for the Uwatec Smart Tec and Z.
Internal, these two models use exactly the same data format. For those features which are only available on one of the models, the corresponding data fields are set to their unused values. For example, the Smart Tec supports up to three gasmixes, while the Smart Z supports only one gasmix. But although the Smart Z has storage reserved for up to three gas mixes, only the first one is ever used.
This commit is contained in:
parent
3536086015
commit
b9e8fdcb52
@ -146,13 +146,6 @@ uwatec_smart_header_info_t uwatec_smart_tec_header = {
|
||||
28, 3
|
||||
};
|
||||
|
||||
static const
|
||||
uwatec_smart_header_info_t uwatec_smart_z_header = {
|
||||
18,
|
||||
20,
|
||||
28, 1
|
||||
};
|
||||
|
||||
static const
|
||||
uwatec_smart_sample_info_t uwatec_smart_pro_samples[] = {
|
||||
{DEPTH, 0, 0, 1, 0, 0}, // 0ddddddd
|
||||
@ -292,14 +285,9 @@ uwatec_smart_parser_create (dc_parser_t **out, dc_context_t *context, unsigned i
|
||||
parser->nsamples = C_ARRAY_SIZE (uwatec_smart_com_samples);
|
||||
break;
|
||||
case SMARTTEC:
|
||||
parser->headersize = 132;
|
||||
parser->header = &uwatec_smart_tec_header;
|
||||
parser->samples = uwatec_smart_tec_samples;
|
||||
parser->nsamples = C_ARRAY_SIZE (uwatec_smart_tec_samples);
|
||||
break;
|
||||
case SMARTZ:
|
||||
parser->headersize = 132;
|
||||
parser->header = &uwatec_smart_z_header;
|
||||
parser->header = &uwatec_smart_tec_header;
|
||||
parser->samples = uwatec_smart_tec_samples;
|
||||
parser->nsamples = C_ARRAY_SIZE (uwatec_smart_tec_samples);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user