From e9a0d8c93bba25968fac8fef57ccddc9b99b58d6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 8 Jun 2025 21:59:45 -0400 Subject: [PATCH] Update fc_block_decode.py .cfg --- groundstation/fc_block_decode.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index 22930798..4745d2a4 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -44,9 +44,12 @@ system_and_print("sudo rm " + image_dir + image) #system_and_print("sudo rm " + html_dir + "*") system_and_print("sudo rm " + html_dir + "images/*") -with open('/home/pi/fctelem/fctelem.conf', 'r') as config: +try: +with open('/home/pi/fctelem/fctelem.cfg', 'r') as config: config_string = config.read() print(config_string) +catch: + print("Error loading fctelem.cfg") #system_and_print("cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg " + html_dir + "image_file.jpeg")