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.
This commit is contained in:
parent
b17f432635
commit
82c1a55a13
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user