Skip to content

Commit

Permalink
Merge pull request #5596 from kamtom480/camera_fix
Browse files Browse the repository at this point in the history
camera: Update camera_make_new arguments
  • Loading branch information
jepler authored Nov 18, 2021
2 parents 4fefb71 + 00426dc commit 932131b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared-bindings/camera/Camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
//| """Initialize camera."""
//| ...
//|
STATIC mp_obj_t camera_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *all_args, mp_map_t *kw_args) {
STATIC mp_obj_t camera_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
camera_obj_t *self = m_new_obj(camera_obj_t);
self->base.type = &camera_type;
// No arguments
mp_arg_check_num(n_args, kw_args, 0, 0, false);
mp_arg_check_num(n_args, n_kw, 0, 0, false);

common_hal_camera_construct(self);
return MP_OBJ_FROM_PTR(self);
Expand Down

0 comments on commit 932131b

Please sign in to comment.