Skip to content

Commit e6d1607

Browse files
fix mv type
1 parent 95b8930 commit e6d1607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_mpos/src/webcam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static mp_obj_t capture_frame(webcam_obj_t *self) {
195195
//snprintf(filename, sizeof(filename), "frame_%03d.raw", self->frame_count++);
196196
//save_raw(filename, self->gray_buffer, OUTPUT_WIDTH, OUTPUT_HEIGHT);
197197

198-
mp_obj_t result = mp_obj_new_memoryview(0x01, OUTPUT_WIDTH * OUTPUT_HEIGHT, self->gray_buffer);
198+
mp_obj_t result = mp_obj_new_memoryview('b', OUTPUT_WIDTH * OUTPUT_HEIGHT, self->gray_buffer);
199199

200200
if (ioctl(self->fd, VIDIOC_QBUF, &buf) < 0) {
201201
mp_raise_OSError(MP_EIO);

0 commit comments

Comments
 (0)