Skip to content

Commit

Permalink
Fix for attribute and command id checking
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty authored Sep 17, 2024
1 parent 32200d1 commit de2cf99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/TC_DeviceConformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def record_warning(location, problem):
location = AttributePathLocation(endpoint_id=endpoint_id, cluster_id=cluster_id, attribute_id=attribute_id)
if attribute_id not in self.xml_clusters[cluster_id].attributes.keys():
# TODO: Consolidate the range checks with IDM-10.1 once that lands
if attribute_id <= 0x4FFF:
if (attribute_id & 0xFFFF0000) != 0:
# manufacturer attribute
record_error(location=location, problem='Standard attribute found on device, but not in spec')
continue
Expand All @@ -192,7 +192,7 @@ def check_spec_conformance_for_commands(command_type: CommandType):
location = CommandPathLocation(endpoint_id=endpoint_id, cluster_id=cluster_id, command_id=command_id)
if command_id not in xml_commands_dict:
# TODO: Consolidate range checks with IDM-10.1 once that lands
if command_id <= 0xFF:
if (command_id & 0xFFFF0000) != 0:
# manufacturer command
continue
record_error(location=location, problem='Standard command found on device, but not in spec')
Expand Down

0 comments on commit de2cf99

Please sign in to comment.