From 785050314628adc84913899165e1305ff1b7c390 Mon Sep 17 00:00:00 2001 From: James Hodgson Date: Fri, 7 Oct 2022 14:50:05 +0100 Subject: [PATCH] #22 Use bytearray instead of bytes --- src/picam/picam1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/picam/picam1.py b/src/picam/picam1.py index e7d8f0a..f2182ba 100644 --- a/src/picam/picam1.py +++ b/src/picam/picam1.py @@ -34,9 +34,9 @@ class PiCam1(PiCam): self.camera.close() self.camera = None - def capture(self, preview: bool = False) -> bytes: + def capture(self, preview: bool = False) -> bytearray: # Bytes to hold output buffer - out = bytes() + out = bytearray() bytes_stream = BytesIO() if not preview: