From 82c1a55a13780aadf7d08e1f5a0d5d6994eaef35 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 4 Jun 2015 21:07:13 +0200 Subject: [PATCH] Fix the gas switches for galileo devices. The bitmask for the gas mix bits was wrong. With the new mask we also no longer have to disable the alarm based gas switches for the Meridian and Chromis. --- src/uwatec_smart_parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uwatec_smart_parser.c b/src/uwatec_smart_parser.c index d72ff1a..163476d 100644 --- a/src/uwatec_smart_parser.c +++ b/src/uwatec_smart_parser.c @@ -880,8 +880,10 @@ uwatec_smart_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_t alarms[table[id].index] = value; have_alarms = 1; if (table[id].index == 1) { - if (parser->model != MERIDIAN && parser->model != CHROMIS) { + if (parser->model == ALADINTEC || parser->model == ALADINTEC2G) { gasmix = (value & 0x30) >> 4; + } else { + gasmix = (value & 0x60) >> 5; } } break;