Skip to content

Commit

Permalink
Clean up unknown tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dmroeder committed May 20, 2024
1 parent 8269c72 commit c5dd902
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pylogix/eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,18 +1319,7 @@ def _get_unknown_types(self, tags):
unk_tags.append(t)

# get the unknown tags
result = []
while len(result) < len(unk_tags):
if len(result) == len(unk_tags) - 1:
tag = unk_tags[len(result):][0]
if isinstance(tag, (list, tuple)):
data_type = tag[1]
else:
data_type = None
tag_name, base_tag, index = parse_tag_name(tag)
result.append(self._initial_read(tag, base_tag, data_type))
else:
result.extend(self._multi_read(unk_tags[len(result):]))
self._multi_read(unk_tags)

def _initial_read(self, tag, base_tag, data_type):
"""
Expand Down

0 comments on commit c5dd902

Please sign in to comment.