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: