From ea6730a44837ed5c15b31f2a58e20d20de3442ec Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 7 Feb 2025 16:55:18 -0500 Subject: [PATCH] Update fc_block_decode.py add .stdout --- groundstation/fc_block_decode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index b4646aa2..3308cd2d 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -65,10 +65,10 @@ if __name__ == "__main__": # try: filename = "image_file" + str(image_count) + "." + str(image_index) + ".jpeg" # system("/home/pi/ssdv/ssdv -d -J image_file " + filename) - process_output = subprocess.run(["/home/pi/ssdv/ssdv","-d","-J", "image_file", filename], text=True) + process = subprocess.run(["/home/pi/ssdv/ssdv","-d","-J", "image_file", filename], text=True) print("\n\n RESULT: \n") - print(process_output) - s = io.StringIO(process_output) + print(process) + s = io.StringIO(process.stdout) for line in s: if ((line.find("Image ID:")) > 0): print("\nImage ID found!\n")