Commits

Eric Pavey committed 8cb08fd

Modified timelapse.py

Comments (0)

Files changed (1)

pi_camera/timelapse.py

         
     print "Time-lapse begin! : Take a picture every %s seconds, for %s hours.  That's %s pictures!"%(interval, captureTime, totalPics)
     try:
-        with picamera.PiCamera() as camera:
+        with picamera.PiCamera(format=format) as camera:
             print "Starting camera..."
             camera.resolution = resolution
             if format == 'jpeg':