#22 Use bytearray instead of bytes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user