Skip to content

Commit

Permalink
removed obsolete code, minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed May 6, 2021
1 parent 0e8b182 commit 75dd5d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tmtccmd/pus_tm/service_8_functional_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ def __init__(self, byte_array, call_srv8_hook: bool = True):
self.custom_data_content = []
if self.get_subservice() == 130:
self.specify_packet_info("Functional Data Reply")
self.source_object_id = struct.unpack('!I', self.get_tm_data()[0:4])[0]
self.object_id_bytes = self.get_tm_data()[0:4]
# if self.object_id == CoreObjectIds.INVALID:
# logger.warning("Service8TM: Unknown object ID")
self.source_object_id = struct.unpack('!I', self.object_id_bytes)[0]
self.source_action_id = struct.unpack('!I', self.get_tm_data()[4:8])[0]
self.custom_data = self.get_tm_data()[8:]
else:
Expand Down

0 comments on commit 75dd5d0

Please sign in to comment.