From 2cd3caec6bf25b9c04bd3f7765261686cb350fcb Mon Sep 17 00:00:00 2001 From: Christopher Nadler <147471517+cnadler86@users.noreply.github.com> Date: Sun, 10 Nov 2024 21:19:00 +0100 Subject: [PATCH] modcamera_api.c aktualisieren --- src/modcamera_api.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modcamera_api.c b/src/modcamera_api.c index ad91f65..86c92df 100644 --- a/src/modcamera_api.c +++ b/src/modcamera_api.c @@ -135,11 +135,9 @@ static mp_obj_t mp_camera_make_new(const mp_obj_type_t *type, size_t n_args, siz sda_pin, scl_pin, xclock_frequency, pixel_format, frame_size, jpeg_quality, fb_count, grab_mode); mp_camera_hal_init(self); - if (mp_camera_hal_capture(self, -1) == mp_const_none){ mp_camera_hal_deinit(self); mp_raise_msg(&mp_type_OSError, MP_ERROR_TEXT("Failed to capture initial frame. Construct a new object with appropriate configuration.")); - return MP_OBJ_FROM_PTR(self); } else { if ( !args[ARG_init].u_bool ){ mp_camera_hal_deinit(self);