From 55c40fc66425c7dbabbd262e46dc139b3832654f Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" <robin.mueller.m@gmail.com> Date: Wed, 19 Aug 2020 22:09:38 +0200 Subject: [PATCH] binary uploader structure improvements --- utility/obsw_binary_uploader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utility/obsw_binary_uploader.py b/utility/obsw_binary_uploader.py index b6d836a..5c9cc8b 100644 --- a/utility/obsw_binary_uploader.py +++ b/utility/obsw_binary_uploader.py @@ -11,11 +11,12 @@ from tkinter import filedialog import config.obsw_config as g + def perform_binary_upload(): + print("Please select file to upload") root = tk.Tk() root.withdraw() root.wm_attributes('-topmost', 1) - print("Please select file to upload") file_path = filedialog.askopenfilename(parent=root) print("File select: " + str(file_path)) calc_hamming_code = input("Calculate and send hamming code? [y/n]") @@ -29,7 +30,7 @@ def perform_binary_upload(): # Right now, the size of PUS packets is limited to 1024 bytes. Therefore, we split up the # binary in 1000 byte packets frame_length = g.G_MAX_BINARY_FRAME_LENGTH - + if calc_hamming_code: # now we calculate the hamming code pass -- GitLab