Skip to content

Commit

Permalink
Fix edge-case where register has empty field in fields
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Sep 14, 2024
1 parent 3c672d8 commit 813708e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def import_svd(bv: BinaryView):
if show_comments:
bv.set_comment_at(reg_addr, reg_desc.splitlines()[0])

if 'fields' not in register:
if 'fields' not in register or 'field' not in register['fields']:
continue

reg_fields = register['fields']['field']
Expand Down

0 comments on commit 813708e

Please sign in to comment.