From 67669e1c9f609221bd312dd69e770d3fe9a916ab Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 6 Feb 2025 15:38:02 -0500 Subject: [PATCH] Update fc_block_decode.py added close --- 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 6c53bf6d..4c822f71 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 (f = open("image_file", "ab")) as binary_file: + with open("image_file", "ab") as binary_file: binary_file.write(immutable_payload) - f.close() + binary_file.close() sleep(60) except: print("File error")