Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dest handler fix for spacepackets #32

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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