From b9e8fdcb529ef429c41dc6ea877d40953b271454 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 21 Oct 2013 20:56:15 +0200 Subject: [PATCH] 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. --- src/uwatec_smart_parser.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/uwatec_smart_parser.c b/src/uwatec_smart_parser.c index addc295..6d6df03 100644 --- a/src/uwatec_smart_parser.c +++ b/src/uwatec_smart_parser.c @@ -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;