diff --git a/Tools/Carbonix_scripts/param_auto_test.py b/Tools/Carbonix_scripts/param_auto_test.py index 8e3124078f..381be77ed2 100644 --- a/Tools/Carbonix_scripts/param_auto_test.py +++ b/Tools/Carbonix_scripts/param_auto_test.py @@ -48,6 +48,15 @@ param_dict[param_name] = None continue + # Check for 'Bitmask' field + field_elem = param_elem.find(".//field[@name='Bitmask']") + if field_elem is not None: + field_values = [ + value.strip().split(':')[0] for value in field_elem.text.split(',') + ] + param_dict[param_name] = {'type': 'Bitmask', 'values': field_values} + continue + # Check for 'values' element param_range = param_elem.find('values') if param_range is not None: @@ -86,15 +95,6 @@ param_dict[param_name] = {'type': 'values', 'values': parsed_values} continue - # Check for 'Bitmask' field - field_elem = param_elem.find(".//field[@name='Bitmask']") - if field_elem is not None: - field_values = [ - value.strip().split(':')[0] for value in field_elem.text.split(',') - ] - param_dict[param_name] = {'type': 'Bitmask', 'values': field_values} - continue - # Default to Int type if no other type is found param_dict[param_name] = {'type': 'Int', 'values': None}