From 41e70a911f0254bd0048b41a84996f296ab8047f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 6 Feb 2025 15:36:50 -0500 Subject: [PATCH] Update fc_block_decode.py add f= --- groundstation/fc_block_decode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 172923ec..6c53bf6d 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -51,9 +51,9 @@ if __name__ == "__main__": # payload = bytearray(data_block[(FC_PAYLOAD + extended):]) immutable_payload = bytes(bytearray(data_block[(FC_PAYLOAD + extended):])) # payload) print(immutable_payload) - with open("image_file", "ab") as binary_file: + with (f = open("image_file", "ab")) as binary_file: binary_file.write(immutable_payload) -# f.close() + f.close() sleep(60) except: print("File error")