File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def record_warning(location, problem):
165
165
location = AttributePathLocation (endpoint_id = endpoint_id , cluster_id = cluster_id , attribute_id = attribute_id )
166
166
if attribute_id not in self .xml_clusters [cluster_id ].attributes .keys ():
167
167
# TODO: Consolidate the range checks with IDM-10.1 once that lands
168
- if attribute_id <= 0x4FFF :
168
+ if ( attribute_id & 0xFFFF0000 ) != 0 :
169
169
# manufacturer attribute
170
170
record_error (location = location , problem = 'Standard attribute found on device, but not in spec' )
171
171
continue
@@ -192,7 +192,7 @@ def check_spec_conformance_for_commands(command_type: CommandType):
192
192
location = CommandPathLocation (endpoint_id = endpoint_id , cluster_id = cluster_id , command_id = command_id )
193
193
if command_id not in xml_commands_dict :
194
194
# TODO: Consolidate range checks with IDM-10.1 once that lands
195
- if command_id <= 0xFF :
195
+ if ( command_id & 0xFFFF0000 ) != 0 :
196
196
# manufacturer command
197
197
continue
198
198
record_error (location = location , problem = 'Standard command found on device, but not in spec' )
You can’t perform that action at this time.
0 commit comments