Skip to content

Commit

Permalink
Merge pull request #25 from Suudy/main
Browse files Browse the repository at this point in the history
Filter non-data records when merging records
  • Loading branch information
TexZK authored Oct 19, 2023
2 parents 476f1fd + f8ccd2e commit 0958e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hexrec/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def merge_records(

blocks = []
for records in data_records:
blocks.extend([r.address, r.data] for r in records)
blocks.extend([r.address, r.data] for r in records if r.is_data())
blocks = Memory.collapse_blocks(blocks)

output_records = blocks_to_records(blocks, output_type,
Expand Down

0 comments on commit 0958e71

Please sign in to comment.