extmod/machine_pinbase: Fix nanbox build.

MP_ROM_PTR() is only for data structures initialization, code should use
MP_OBJ_FROM_PTR().
This commit is contained in:
Paul Sokolovsky 2016-06-19 00:26:57 +03:00
parent e68811dbbf
commit efee577318
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ STATIC mp_obj_t pinbase_make_new(const mp_obj_type_t *type, size_t n_args, size_
(void)n_args;
(void)n_kw;
(void)args;
return MP_ROM_PTR(&pinbase_singleton);
return MP_OBJ_FROM_PTR(&pinbase_singleton);
}
mp_uint_t pinbase_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode);