#22 Use bytearray instead of bytes

This commit is contained in:
James Hodgson
2022-10-07 14:50:05 +01:00
parent 514c60f668
commit 7850503146

View File

@@ -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: