diff --git a/utility/obsw_binary_uploader.py b/utility/obsw_binary_uploader.py index b6d836a00ca6fd255f7feb46ca6dc1ffe952833a..5c9cc8bef3b166d2bb1979a55634df00c6aa990b 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