From 53ee94f49bdc7b179dfac374d1a3f6b492c47537 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 29 Jun 2021 17:43:51 -0400 Subject: [PATCH] added deletion of camera image as soon as it is encoded. --- rpitx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rpitx.py b/rpitx.py index a7005ee2..4a46e9be 100644 --- a/rpitx.py +++ b/rpitx.py @@ -192,6 +192,7 @@ if __name__ == "__main__": system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") print("Photo taken") system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/camera_out.jpg") + system("sudo rm /home/pi/CubeSatSim/camera_out.jpg /dev/null 2>&1") print ("Sending SSTV image") output(txLed, txLedOn) if (debug_mode == 1):