Skip to content

Commit 0501a26

Browse files
Robin MuellerRobin Mueller
authored andcommitted
minor format changes
1 parent 1870df7 commit 0501a26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spacepackets/ecss/tc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ def __str__(self):
240240
"""Returns string representation of a class instance."""
241241
return (
242242
f"PUS TC[{self.data_field_header.service_type}, "
243-
f"{self.data_field_header.service_subtype}], APID {self.apid}, "
244-
f"SSC {self.space_packet_header.ssc}, size {self.packet_len}"
243+
f"{self.data_field_header.service_subtype}], APID {self.apid:#05x}, "
244+
f"SSC {self.space_packet_header.ssc}, Size {self.packet_len}"
245245
)
246246

247247
@property

spacepackets/ecss/tm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def unpack(
174174
def __str__(self):
175175
return (
176176
f"PUS TM[{self.secondary_packet_header.service_id},"
177-
f"{self.secondary_packet_header.subservice_id}], APID {self.apid}, MSG Counter "
177+
f"{self.secondary_packet_header.subservice_id}], APID {self.apid:#05x}, MSG Counter "
178178
f"{self.secondary_packet_header.message_counter}, Size {self.packet_len}"
179179
)
180180

0 commit comments

Comments
 (0)