need to return something as well

This commit is contained in:
Robin Müller 2021-08-11 19:26:40 +02:00
parent 5713bf0806
commit 25f8543a8d
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@ def handle_user_hk_packet(object_id: bytes, set_id: int, hk_data: bytearray,
else:
LOGGER.info("Serive 3 TM: Syrlinks handler reply with unknown set id")
return [], [], bytearray(), 0
elif object_id == GPS_HANDLER_0_ID or object_id == GPS_HANDLER_1_ID
elif object_id == GPS_HANDLER_0_ID or object_id == GPS_HANDLER_1_ID:
return handle_gps_data(hk_data=hk_data)
else:
LOGGER.info("Service 3 TM: Parsing for this SID has not been implemented.")
@ -141,5 +141,6 @@ def handle_self_test_data(hk_data: bytearray) -> Tuple[list, list, bytearray, in
return hk_header, hk_content, validity_buffer, len(hk_header)
def handle_gps_data(hk_data: bytearray):
def handle_gps_data(hk_data: bytearray) -> Tuple[list, list, bytearray, int]:
LOGGER.info('Received GPS data')
return [], [], bytearray(), 0

@ -1 +1 @@
Subproject commit 51619f4724b443a1ce0b5949dd1c1eb9c9eaead0
Subproject commit 87af3df9fb9860bf12b70bf2eff503a468a893de