diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py index db50690c6e..e9e011b39c 100755 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -276,6 +276,10 @@ def process_library(vehicle, library, pathprefix=None): value = re.sub('@PREFIX@', library.name, field[2]) setattr(p, field[0], value) + if (getattr(p, 'Values', None) is not None and + getattr(p, 'Bitmask', None) is not None): + error("Both @Values and @Bitmask present") + if (getattr(p, 'Values', None) is None and getattr(p, 'Bitmask', None) is None): # values and Bitmask available for this vehicle