From 207cfb8c9891928a518dc7e1925bf6fb3c68e29b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 11 May 2022 10:45:08 -0400 Subject: [PATCH] added timeout 10 on raspistill test to prevent hanging --- rpitx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index 08f929a1..cd7eaead 100644 --- a/rpitx.py +++ b/rpitx.py @@ -177,7 +177,7 @@ if __name__ == "__main__": # from pysstv.sstv import SSTV # camera = PiCamera() print("Testing for camera") - system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") + system("timeout 10 raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") f = open("/home/pi/CubeSatSim/camera_out.jpg") print("Camera present") camera_present = 1