camera: Update camera_make_new arguments

This commit is contained in:
Kamil Tomaszewski 2021-11-17 16:42:47 +01:00
parent a4be846d67
commit 00426dc232

View File

@ -61,11 +61,11 @@
//| """Initialize camera.""" //| """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); camera_obj_t *self = m_new_obj(camera_obj_t);
self->base.type = &camera_type; self->base.type = &camera_type;
// No arguments // 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); common_hal_camera_construct(self);
return MP_OBJ_FROM_PTR(self); return MP_OBJ_FROM_PTR(self);