Disable alarm based gas switches for the Meridian.
The gas mix index stored in the alarm bytes is occasionally out of range (larger than the number of available gas mixes). The index refers to one of the disabled gas mixes. Since those are excluded now, this results in a fatal error instead of a switch to a nonsense gas mix. To workaround this problem, the alarm based gas switches are disabled until we figure out how to parse them correctly. The Chromis is almost identical to the Meridian, and will probably need the same workaround. Although I don't have any data to confirm this, let's just keep the two in sync.
This commit is contained in:
parent
c01ff9f9c6
commit
42808873e4
@ -727,7 +727,9 @@ 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) {
|
||||
gasmix = (value & 0x30) >> 4;
|
||||
if (parser->model != MERIDIAN && parser->model != CHROMIS) {
|
||||
gasmix = (value & 0x30) >> 4;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case TIME:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user