added timeout 10 on raspistill test to prevent hanging

camera-timeout
alanbjohnston 4 years ago committed by GitHub
parent b8b49d543f
commit 207cfb8c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -177,7 +177,7 @@ if __name__ == "__main__":
# from pysstv.sstv import SSTV # from pysstv.sstv import SSTV
# camera = PiCamera() # camera = PiCamera()
print("Testing for camera") 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") f = open("/home/pi/CubeSatSim/camera_out.jpg")
print("Camera present") print("Camera present")
camera_present = 1 camera_present = 1

Loading…
Cancel
Save

Powered by TurnKey Linux.