Skip to content

Commit

Permalink
small fix for bumped spacepackets
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Dec 2, 2024
1 parent ffb8814 commit c19d3a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [
"Topic :: Scientific/Engineering"
]
dependencies = [
"spacepackets>=0.24.2, <=0.26",
"spacepackets~=0.26.0",
"crcmod~=1.7",
"deprecation~=2.1",
]
Expand Down
5 changes: 3 additions & 2 deletions src/cfdppy/handler/dest.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,10 @@ def _handle_metadata_packet(self, metadata_pdu: MetadataPdu) -> None:
else:
self.states.step = TransactionStep.TRANSFER_COMPLETION
msgs_to_user_list = None
if metadata_pdu.options is not None:
options = metadata_pdu.options_as_tlv()
if options is not None:
msgs_to_user_list = []
for tlv in metadata_pdu.options:
for tlv in options:
if tlv.tlv_type == TlvType.MESSAGE_TO_USER:
msgs_to_user_list.append(MessageToUserTlv.from_tlv(tlv))
file_size_for_indication = (
Expand Down

0 comments on commit c19d3a7

Please sign in to comment.