Skip to content
Snippets Groups Projects
Commit a4325767 authored by Robin Mueller's avatar Robin Mueller
Browse files

faulty check removed

parent dc6e7e41
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,10 @@ def generate_copy_bl_sdc_to_flash_packet(ssc: int, from_fram: bool = False,
# Slot values: 0 -> Slot 0, 1 -> Slot 1, 2 -> Update Slot
def generate_copy_obsw_sdc_to_flash_packet(ssc:int, slot: int,
def generate_copy_obsw_sdc_to_flash_packet(ssc: int, slot: int,
object_id: bytearray = SW_IMAGE_HANDLER_ID):
app_data = bytearray(object_id)
app_data += make_action_id(4)
if slot != 0 or slot != 1 or slot != 2:
LOGGER.error("generate_copy_obsw_sdc_to_flash_packet: Invalid slot number!")
return None
app_data.append(slot)
return PusTelecommand(service=8, subservice=128, ssc=ssc, app_data=app_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment