Browse Source

extmod/machine_pinbase: Fix nanbox build.

MP_ROM_PTR() is only for data structures initialization, code should use
MP_OBJ_FROM_PTR().
pull/2193/head
Paul Sokolovsky 9 years ago
parent
commit
efee577318
  1. 2
      extmod/machine_pinbase.c

2
extmod/machine_pinbase.c

@ -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);

Loading…
Cancel
Save