diff --git a/utility/obsw_binary_uploader.py b/utility/obsw_binary_uploader.py index 47078d12746fcbcfffc089ec93adfb4089b835e3..46f0d2049070e545f13ecb9265bf615781e036c0 100644 --- a/utility/obsw_binary_uploader.py +++ b/utility/obsw_binary_uploader.py @@ -45,11 +45,16 @@ def perform_binary_upload(comIF: CommunicationInterface): print("Test") tc_queue = deque() + + # Delete existing binary file first, otherwise data might be appeneded to otherwise + # valid file which already exists. + # generate_service23_subservice1_packet() + # We have to split the binary here first generate_service23_subservice128_packet(tc_queue, "BIN/AT91/BL", "bl.bin", 1024, data_to_read) while tc_queue: (tc_packet, tc_info) = tc_queue.pop() comIF.send_telecommand(tc_packet, tc_info) print("Sending..") - time.sleep(0.5) + time.sleep(2.0) print("Test2")