From bdb5c39d0c1ef5fcb5625491786baf5d39387364 Mon Sep 17 00:00:00 2001 From: James Hodgson Date: Fri, 7 Oct 2022 15:32:29 +0100 Subject: [PATCH] #22 Minor refactor --- src/picam/picam1.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/picam/picam1.py b/src/picam/picam1.py index b8db65f..b7100a7 100644 --- a/src/picam/picam1.py +++ b/src/picam/picam1.py @@ -41,10 +41,7 @@ class PiCam1(PiCam): out = bytearray((self.preview_resolution[0] * self.preview_resolution[1]) * 3) else: out = bytearray((self.capture_resolution[0] * self.capture_resolution[1]) * 3) - - if not preview: - # If preview we'll already have the right resolution - self.set_camera_resolution(self.capture_resolution) + self.set_camera_resolution(self.capture_resolution) # If preview we'll already have the right resolution bytes_stream = BytesIO() self.camera.capture(bytes_stream, format='rgb', use_video_port=preview)